aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-05-18 19:51:32 +0200
committerGitHub <noreply@github.com>2024-05-18 19:51:32 +0200
commit0a4acafed95b70499bab264288d3982657684c43 (patch)
tree1d8d1e72e690b5e1c10a41cc0022adf288301434
parentb5b29450446248337a08ed358169e69faebba5c1 (diff)
downloadskyhanni-0a4acafed95b70499bab264288d3982657684c43.tar.gz
skyhanni-0a4acafed95b70499bab264288d3982657684c43.tar.bz2
skyhanni-0a4acafed95b70499bab264288d3982657684c43.zip
Fix: Storage Value Bz (#1833)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt3
1 files changed, 3 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 9ad8be984..c7808b9de 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt
@@ -10,6 +10,7 @@ import at.hannibal2.skyhanni.events.InventoryCloseEvent
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.misc.items.EstimatedItemValue
import at.hannibal2.skyhanni.features.misc.items.EstimatedItemValueCalculator
import at.hannibal2.skyhanni.utils.CollectionUtils.addAsSingletonList
@@ -62,6 +63,7 @@ class ChestValue {
@SubscribeEvent
fun onTick(event: LorenzTickEvent) {
if (!isEnabled()) return
+ if (!inInventory) return
if (event.isMod(5)) {
update()
}
@@ -227,6 +229,7 @@ class ChestValue {
private fun isValidStorage(): Boolean {
val name = InventoryUtils.openInventoryName().removeColor()
if (Minecraft.getMinecraft().currentScreen !is GuiChest) return false
+ if (BazaarApi.inBazaarInventory) return false
if ((name.contains("Backpack") && name.contains("Slot #") || name.startsWith("Ender Chest (")) &&
!InventoryUtils.isNeuStorageEnabled.getValue()