diff options
author | martimavocado <39881008+martimavocado@users.noreply.github.com> | 2024-03-19 08:40:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 09:40:52 +0100 |
commit | 768d6e80131ade55edfeba769f7cdb0d24fd2ae3 (patch) | |
tree | 80aff5b5247bcddda758759a401d2a1973db96c8 /src/main/java/at/hannibal2/skyhanni | |
parent | 2c3873c1edec95753e633418ed69358798376923 (diff) | |
download | skyhanni-768d6e80131ade55edfeba769f7cdb0d24fd2ae3.tar.gz skyhanni-768d6e80131ade55edfeba769f7cdb0d24fd2ae3.tar.bz2 skyhanni-768d6e80131ade55edfeba769f7cdb0d24fd2ae3.zip |
Fix: Party Finder "Mark Missing Class" highlighting too much (#1211)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt | 9 |
1 files changed, 8 insertions, 1 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 7037743ef..d8948d664 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt @@ -149,6 +149,8 @@ class DungeonFinderFeatures { val chestName = InventoryUtils.openInventoryName() if (chestName != "Party Finder") return + val allowedSlots = (10..34).filter { it !in listOf(17, 18, 26, 27) } + if (event.slot.slotNumber !in allowedSlots) return val stack = event.itemStack @@ -165,9 +167,14 @@ class DungeonFinderFeatures { } if (!config.showMissingClasses) return if (stack.getLore().firstOrNull()?.removeColor()?.startsWith("Dungeon:") == false) return - if (classNames.contains(selectedClass)) selectedClass = "§a${selectedClass}§7" + var uncoloredSelectedClass = "" + if (classNames.contains(selectedClass)) { + uncoloredSelectedClass = selectedClass + selectedClass = "§a${selectedClass}§7" + } event.toolTip.add("") event.toolTip.add("§cMissing: §7" + classNames.createCommaSeparatedList()) + if (uncoloredSelectedClass.isNotEmpty()) selectedClass = uncoloredSelectedClass } @SubscribeEvent |