diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt | 4 |
1 files changed, 2 insertions, 2 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 b1d63a24d..964b4653e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt @@ -164,8 +164,8 @@ class DungeonFinderFeatures { } } if (!config.showMissingClasses) return - if (!stack.getLore()[0].removeColor().startsWith("Dungeon:")) return - if (classNames.contains(selectedClass)) classNames[classNames.indexOf(selectedClass)] = "§a${selectedClass}§7" + if (stack.getLore().firstOrNull()?.removeColor()?.startsWith("Dungeon:") == false) return + if (classNames.contains(selectedClass)) selectedClass = "§a${selectedClass}§7" event.toolTip.add("") event.toolTip.add("§cMissing: §7" + createCommaSeparatedList(classNames)) } |