diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-05-02 11:25:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 11:25:02 +0200 |
commit | 073e90e3d7b2d01ffd877686343b2366eb890ce2 (patch) | |
tree | 36a2bb5e1d478402536ad21345ac6b204ef75ac2 /src/main/java/at | |
parent | 4a3cf27e2501d75bc98a976489a211638060e9a4 (diff) | |
download | skyhanni-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')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/farming/lane/FarmingLaneAPI.kt | 2 |
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] |