aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusUnopenedChestTracker.kt11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusUnopenedChestTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusUnopenedChestTracker.kt
index 5224edd79..7c52f4154 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusUnopenedChestTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusUnopenedChestTracker.kt
@@ -23,14 +23,9 @@ class CroesusUnopenedChestTracker {
for (slot in InventoryUtils.getItemsInOpenChest()) {
val stack = slot.stack
val lore = stack.getLore()
- if ("§eClick to view chests!" in lore) {
- if ("§aNo more Chests to open!" !in lore) {
- slot highlight if (lore.any { it.contains("Opened Chest") }) {
- LorenzColor.DARK_AQUA
- } else {
- LorenzColor.DARK_PURPLE
- }
- }
+ if ("§eClick to view chests!" in lore && "§aNo more Chests to open!" !in lore) {
+ val hasOpenedChests = lore.any { it.contains("Opened Chest") }
+ slot highlight if (hasOpenedChests) LorenzColor.DARK_AQUA else LorenzColor.DARK_PURPLE
}
}
}