From 76fd1aa7306e52beb0640499329d12491971f351 Mon Sep 17 00:00:00 2001 From: ILike2WatchMemes Date: Mon, 11 Mar 2024 16:10:29 +0100 Subject: Fix: Fix Lane Switch Calculation (#1138) --- .../at/hannibal2/skyhanni/features/garden/farming/LaneSwitchUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at') 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() -- cgit