aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-03 23:12:21 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-03 23:12:21 +0100
commit87a3f4262b71c022f845999604109678ef0ccffb (patch)
tree31815d3a4faf01ea8b1b91e7e5dc48a87947f2e3 /src/main/java/at/hannibal2/skyhanni/utils
parentf6187bc90066198aa0c4bf6634d044cb4c89661c (diff)
downloadskyhanni-87a3f4262b71c022f845999604109678ef0ccffb.tar.gz
skyhanni-87a3f4262b71c022f845999604109678ef0ccffb.tar.bz2
skyhanni-87a3f4262b71c022f845999604109678ef0ccffb.zip
Added option to hide Profit Trackers while not inside an inventory.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt
index 8eebcd2aa..226e00dfa 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt
@@ -83,6 +83,9 @@ open class SkyHanniTracker<Data : TrackerData>(
if (config.hideInEstimatedItemValue && EstimatedItemValue.isCurrentlyShowing()) return
val currentlyOpen = Minecraft.getMinecraft().currentScreen is GuiInventory
+ if (!currentlyOpen && config.hideItemTrackersOutsideInventory && this is SkyHanniItemTracker) {
+ return
+ }
if (inventoryOpen != currentlyOpen) {
inventoryOpen = currentlyOpen
update()