From d2493f9525c01f549d924ac7ccd5ec3fbf530286 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:00:42 +0200 Subject: fix dicer tracker visibility --- .../skyhanni/config/features/garden/DicerRngDropTrackerConfig.java | 1 + .../at/hannibal2/skyhanni/features/garden/farming/DicerRngDropTracker.kt | 1 + 2 files changed, 2 insertions(+) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/garden/DicerRngDropTrackerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/garden/DicerRngDropTrackerConfig.java index 55dab6c74..77cb352f6 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/garden/DicerRngDropTrackerConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/garden/DicerRngDropTrackerConfig.java @@ -29,5 +29,6 @@ public class DicerRngDropTrackerConfig { @Expose @ConfigLink(owner = DicerRngDropTrackerConfig.class, field = "display") + // TODO rename to "positon" public Position pos = new Position(16, -232, false, true); } diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/DicerRngDropTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/DicerRngDropTracker.kt index 8cc8c55cb..9e9e3620b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/DicerRngDropTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/DicerRngDropTracker.kt @@ -170,6 +170,7 @@ object DicerRngDropTracker { @SubscribeEvent fun onRenderOverlay(event: GuiRenderEvent) { if (!isEnabled()) return + if (cropInHand == null) return tracker.renderDisplay(config.pos) } -- cgit