aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-05-02 11:25:02 +0200
committerGitHub <noreply@github.com>2024-05-02 11:25:02 +0200
commit073e90e3d7b2d01ffd877686343b2366eb890ce2 (patch)
tree36a2bb5e1d478402536ad21345ac6b204ef75ac2 /src/main/java/at/hannibal2/skyhanni
parent4a3cf27e2501d75bc98a976489a211638060e9a4 (diff)
downloadskyhanni-073e90e3d7b2d01ffd877686343b2366eb890ce2.tar.gz
skyhanni-073e90e3d7b2d01ffd877686343b2366eb890ce2.tar.bz2
skyhanni-073e90e3d7b2d01ffd877686343b2366eb890ce2.zip
Fix: Farming lane detection (#1645)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/lane/FarmingLaneAPI.kt2
1 files changed, 1 insertions, 1 deletions
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]