From d2aa31ee51c052aee0b6e4600cd549ede960ea6b Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 10 Mar 2024 21:33:44 +0100 Subject: rename --- .../skyhanni/features/dungeon/CroesusChestTracker.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt index e831a2a11..8623e3fc5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/CroesusChestTracker.kt @@ -89,7 +89,7 @@ class CroesusChestTracker { @SubscribeEvent fun onInventoryOpen(event: InventoryFullyOpenedEvent) { if (!LorenzUtils.inSkyBlock) return - if ((SkyHanniMod.feature.dungeon.croesusUnopenedChestTracker || config.kismet) && croesusPattern.matches(event.inventoryName)) { + if ((SkyHanniMod.feature.dungeon.croesusUnopenedChestTracker || config.showUsedKismets) && croesusPattern.matches(event.inventoryName)) { pageSetup(event) if (croesusEmpty) { @@ -104,7 +104,7 @@ class CroesusChestTracker { return } - if (config.kismet || config.kismetStackSize) { + if (config.showUsedKismets || config.kismetStackSize) { kismetDungeonChestSetup(event) } } @@ -114,9 +114,9 @@ class CroesusChestTracker { if (config.kismetStackSize) { kismetAmountCache = getKismetAmount().toInt() } - if (config.kismet) { + if (config.showUsedKismets) { val kismetItem = event.inventoryItems[kismetSlotId] ?: return - if (config.kismet && kismetUsedPattern.matches(kismetItem.getLore().lastOrNull())) + if (config.showUsedKismets && kismetUsedPattern.matches(kismetItem.getLore().lastOrNull())) setKismetUsed() } } @@ -172,7 +172,7 @@ class CroesusChestTracker { @SubscribeEvent fun onSlotClicked(event: GuiContainerEvent.SlotClickEvent) { if (!LorenzUtils.inSkyBlock) return - if (!config.kismet) return + if (!config.showUsedKismets) return if (chestInventory != null && event.slotId == kismetSlotId) { setKismetUsed() return @@ -208,7 +208,7 @@ class CroesusChestTracker { @SubscribeEvent fun onRenderItemTipIsKismetable(event: RenderInventoryItemTipEvent) { if (!LorenzUtils.inSkyBlock) return - if (!config.kismet) return + if (!config.showUsedKismets) return if (!inCroesusInventory) return if (event.slot.slotIndex != event.slot.slotNumber) return val run = croesusSlotMapToRun(event.slot.slotIndex) ?: return -- cgit