diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-10 21:10:07 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-10 21:10:07 +0100 |
commit | 33dc30ea4ee00afd97d28b5dbffc3f5f57d2473f (patch) | |
tree | f75944f6c1989fda4094cbc0c7cea388b276ce92 | |
parent | 504924b65b0b1cf6bc5deaf2a46e2162504d63bf (diff) | |
download | skyhanni-33dc30ea4ee00afd97d28b5dbffc3f5f57d2473f.tar.gz skyhanni-33dc30ea4ee00afd97d28b5dbffc3f5f57d2473f.tar.bz2 skyhanni-33dc30ea4ee00afd97d28b5dbffc3f5f57d2473f.zip |
fixed potential crash
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/farming/LaneSwitchNotification.kt | 2 |
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 |