aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-28 08:29:38 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-28 08:29:38 +0200
commit993fe26c68aeaf39e4a7187df44231ebe48214da (patch)
treeeb3e630a2e701734687744852a8362e3b6631b11
parent61f1122c93e9baa17c048c5e94ce32ddee22c03b (diff)
downloadskyhanni-993fe26c68aeaf39e4a7187df44231ebe48214da.tar.gz
skyhanni-993fe26c68aeaf39e4a7187df44231ebe48214da.tar.bz2
skyhanni-993fe26c68aeaf39e4a7187df44231ebe48214da.zip
code cleanup
-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
}
}
}