From 9cb2848ebbabbd9942fa56179f4dcd68363ebeda Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 2 Apr 2023 22:11:48 +0200 Subject: Fixes a bug that the farming weight data is loaded even when the feature is disabled --- .../java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt index 9583e889e..d0ac16d8e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt @@ -53,6 +53,7 @@ class EliteFarmingWeight { @SubscribeEvent fun onTick(event: TickEvent.ClientTickEvent) { + if (!isEnabled()) return if (tick++ % 5 != 0) return update() } -- cgit