From 33dc30ea4ee00afd97d28b5dbffc3f5f57d2473f Mon Sep 17 00:00:00 2001
From: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Date: Sun, 10 Mar 2024 21:10:07 +0100
Subject: fixed potential crash

---
 .../skyhanni/features/garden/farming/LaneSwitchNotification.kt          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
cgit