From 073e90e3d7b2d01ffd877686343b2366eb890ce2 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Thu, 2 May 2024 11:25:02 +0200 Subject: Fix: Farming lane detection (#1645) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../hannibal2/skyhanni/features/garden/farming/lane/FarmingLaneAPI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/lane/FarmingLaneAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/lane/FarmingLaneAPI.kt index 9663f67f8..92ba29550 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/lane/FarmingLaneAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/lane/FarmingLaneAPI.kt @@ -26,7 +26,7 @@ object FarmingLaneAPI { @SubscribeEvent fun onCropClick(event: CropClickEvent) { val crop = event.crop - GardenAPI.hasFarmingToolInHand() + if (!GardenAPI.hasFarmingToolInHand()) return val lanes = lanes ?: return val lane = lanes[crop] -- cgit