From 3aa6d8ce069902f81a341ccb5d33fc76f7274935 Mon Sep 17 00:00:00 2001 From: Roman / Linnea Gräf Date: Thu, 6 Jul 2023 01:53:07 +0200 Subject: Add detekt rules (#750) --- .../moulberry/notenoughupdates/miscfeatures/WardrobeMouseButtons.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/WardrobeMouseButtons.kt b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/WardrobeMouseButtons.kt index f38d3752..f91e8d6e 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/WardrobeMouseButtons.kt +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/WardrobeMouseButtons.kt @@ -52,6 +52,7 @@ class WardrobeMouseButtons { checkKeybinds(event) } + @Suppress("InvalidSubscribeEvent") private fun checkKeybinds(event: GuiScreenEvent) { if (!NotEnoughUpdates.INSTANCE.config.wardrobeKeybinds.enableWardrobeKeybinds || !NotEnoughUpdates.INSTANCE.hasSkyblockScoreboard()) return val gui = event.gui as? GuiChest ?: return -- cgit