diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-05-18 20:14:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-18 20:14:04 +0200 |
commit | 925d8934b35ccef781f2a36e2b4409621dafb31f (patch) | |
tree | a6caf35b09a4358fa3598c981483564299a5d31d /src/main/java/at/hannibal2/skyhanni | |
parent | 0a4acafed95b70499bab264288d3982657684c43 (diff) | |
download | skyhanni-925d8934b35ccef781f2a36e2b4409621dafb31f.tar.gz skyhanni-925d8934b35ccef781f2a36e2b4409621dafb31f.tar.bz2 skyhanni-925d8934b35ccef781f2a36e2b4409621dafb31f.zip |
Fix: Chest value in Minion (#1834)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt index c7808b9de..e0bd27769 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt @@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.events.InventoryOpenEvent import at.hannibal2.skyhanni.events.LorenzTickEvent import at.hannibal2.skyhanni.features.dungeon.DungeonAPI import at.hannibal2.skyhanni.features.inventory.bazaar.BazaarApi +import at.hannibal2.skyhanni.features.minion.MinionFeatures import at.hannibal2.skyhanni.features.misc.items.EstimatedItemValue import at.hannibal2.skyhanni.features.misc.items.EstimatedItemValueCalculator import at.hannibal2.skyhanni.utils.CollectionUtils.addAsSingletonList @@ -230,6 +231,9 @@ class ChestValue { val name = InventoryUtils.openInventoryName().removeColor() if (Minecraft.getMinecraft().currentScreen !is GuiChest) return false if (BazaarApi.inBazaarInventory) return false + if (MinionFeatures.minionInventoryOpen) return false + if (MinionFeatures.minionStorageInventoryOpen) return false + if ((name.contains("Backpack") && name.contains("Slot #") || name.startsWith("Ender Chest (")) && !InventoryUtils.isNeuStorageEnabled.getValue() |