From b6c3d55d39362cdcda69902a524b43996e2358db Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 19 Mar 2024 09:41:21 +0100 Subject: code cleanup --- .../at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt index d8948d664..3dfa31493 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt @@ -35,6 +35,8 @@ class DungeonFinderFeatures { private val classLevelPattern = " §.(?.*)§f: §e(?.*)§b \\(§e(?.*)§b\\)".toPattern() private val notePattern = "^(§7§7Note: |§f[^§])".toRegex() + private val allowedSlots = (10..34).filter { it !in listOf(17, 18, 26, 27) } + private var selectedClass = "" @SubscribeEvent @@ -147,9 +149,7 @@ class DungeonFinderFeatures { fun onItemTooltip(event: LorenzToolTipEvent) { if (!LorenzUtils.inSkyBlock) return - val chestName = InventoryUtils.openInventoryName() - if (chestName != "Party Finder") return - val allowedSlots = (10..34).filter { it !in listOf(17, 18, 26, 27) } + if (InventoryUtils.openInventoryName() != "Party Finder") return if (event.slot.slotNumber !in allowedSlots) return val stack = event.itemStack -- cgit