aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-02 22:11:48 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-02 22:11:48 +0200
commit9cb2848ebbabbd9942fa56179f4dcd68363ebeda (patch)
treeadae13d8cf4ff6e8fa12b0000755b27d154f0ab4 /src
parent57efe36b45eb81aeea505b1aa8579e0d8cc760a7 (diff)
downloadskyhanni-9cb2848ebbabbd9942fa56179f4dcd68363ebeda.tar.gz
skyhanni-9cb2848ebbabbd9942fa56179f4dcd68363ebeda.tar.bz2
skyhanni-9cb2848ebbabbd9942fa56179f4dcd68363ebeda.zip
Fixes a bug that the farming weight data is loaded even when the feature is disabled
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt1
1 files changed, 1 insertions, 0 deletions
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()
}