aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-19 09:41:21 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-19 09:41:21 +0100
commitb6c3d55d39362cdcda69902a524b43996e2358db (patch)
tree6841d7e5fa70c570b5ade895ad091aad1c8be363 /src/main/java
parent768d6e80131ade55edfeba769f7cdb0d24fd2ae3 (diff)
downloadskyhanni-b6c3d55d39362cdcda69902a524b43996e2358db.tar.gz
skyhanni-b6c3d55d39362cdcda69902a524b43996e2358db.tar.bz2
skyhanni-b6c3d55d39362cdcda69902a524b43996e2358db.zip
code cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt6
1 files changed, 3 insertions, 3 deletions
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 = " §.(?<playerName>.*)§f: §e(?<className>.*)§b \\(§e(?<level>.*)§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