aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()