diff options
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/InventoryConfig.java | 8 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/InventoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/InventoryConfig.java index 8d3c4a56d..9ddaae675 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/InventoryConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/InventoryConfig.java @@ -233,12 +233,18 @@ public class InventoryConfig { public static class ChestValueConfig { @Expose - @ConfigOption(name = "Enabled", desc = "Enabled estimated value of chest") + @ConfigOption(name = "Enabled", desc = "Enable estimated value of chest") @ConfigEditorBoolean @FeatureToggle public boolean enabled = false; @Expose + @ConfigOption(name = "Enabled in dungeons", desc = "Enable the feature in dungeons.") + @ConfigEditorBoolean + @FeatureToggle + public boolean enableInDungeons = false; + + @Expose @ConfigOption(name = "Show Stacks", desc = "Show the item icon before name.") @ConfigEditorBoolean public boolean showStacks = true; 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 52d1627d9..52e6d3b8d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ChestValue.kt @@ -40,6 +40,7 @@ class ChestValue { @SubscribeEvent fun onBackgroundDraw(event: GuiRenderEvent.ChestGuiOverlayRenderEvent) { if (!isEnabled()) return + if (LorenzUtils.inDungeons && !config.enableInDungeons) return if (InventoryUtils.openInventoryName() == "") return if (inInventory) { config.position.renderStringsAndItems( @@ -274,4 +275,4 @@ class ChestValue { ) private fun isEnabled() = LorenzUtils.inSkyBlock && config.enabled -}
\ No newline at end of file +} |