aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-10 21:10:07 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-10 21:10:07 +0100
commit33dc30ea4ee00afd97d28b5dbffc3f5f57d2473f (patch)
treef75944f6c1989fda4094cbc0c7cea388b276ce92 /src/main/java/at/hannibal2/skyhanni
parent504924b65b0b1cf6bc5deaf2a46e2162504d63bf (diff)
downloadskyhanni-33dc30ea4ee00afd97d28b5dbffc3f5f57d2473f.tar.gz
skyhanni-33dc30ea4ee00afd97d28b5dbffc3f5f57d2473f.tar.bz2
skyhanni-33dc30ea4ee00afd97d28b5dbffc3f5f57d2473f.zip
fixed potential crash
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/LaneSwitchNotification.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/LaneSwitchNotification.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/LaneSwitchNotification.kt
index ed1c5f074..f83f81bfc 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/LaneSwitchNotification.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/LaneSwitchNotification.kt
@@ -91,7 +91,7 @@ class LaneSwitchNotification {
@SubscribeEvent
fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) {
- if (!config.distanceUntilSwitch || !isEnabled()) return
+ if (!isEnabled() || !config.distanceUntilSwitch) return
if (distancesUntilSwitch.isEmpty()) return
if (lastDistancesUntilSwitch.isEmpty()) {
lastDistancesUntilSwitch = distancesUntilSwitch