aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorILike2WatchMemes <ilike2watchmemes@gmail.com>2024-03-11 16:10:29 +0100
committerGitHub <noreply@github.com>2024-03-11 16:10:29 +0100
commit76fd1aa7306e52beb0640499329d12491971f351 (patch)
treeb719c709987a4ca404ff77907f955b216cad9f63 /src/main/java/at/hannibal2
parent38fd5219d3669120b994b843514bc61d9cb14552 (diff)
downloadskyhanni-76fd1aa7306e52beb0640499329d12491971f351.tar.gz
skyhanni-76fd1aa7306e52beb0640499329d12491971f351.tar.bz2
skyhanni-76fd1aa7306e52beb0640499329d12491971f351.zip
Fix: Fix Lane Switch Calculation (#1138)
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/LaneSwitchUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/LaneSwitchUtils.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/LaneSwitchUtils.kt
index 1bdff35de..43926f096 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/LaneSwitchUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/LaneSwitchUtils.kt
@@ -88,7 +88,7 @@ object LaneSwitchUtils {
val isNextUnlocked: Boolean
val isNextBarn: Boolean
- if (value == Value.MAX) {
+ if (value == Value.TOP) {
if (plotIndex - 1 == -1 || (plotIndex - 5) < 0) return true // check if next plot is out of bounds
isNextUnlocked = GardenPlotAPI.plots[plotIndex - 5].unlocked
isNextBarn = GardenPlotAPI.plots[plotIndex - 5].isBarn()