aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/garden
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-27 16:07:03 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-27 16:07:03 +0200
commit1ce6b2bbd29b026efafdc752c79d7aa581f4de99 (patch)
treeca66fc395b688b1623dcfa8900cd33e78ccc0638 /src/main/java/at/hannibal2/skyhanni/features/garden
parentd909692ac051ffa60d77e0c86056ae7cba7f2d14 (diff)
downloadskyhanni-1ce6b2bbd29b026efafdc752c79d7aa581f4de99.tar.gz
skyhanni-1ce6b2bbd29b026efafdc752c79d7aa581f4de99.tar.bz2
skyhanni-1ce6b2bbd29b026efafdc752c79d7aa581f4de99.zip
Fixed hotkey working while inside an inventory/chat/etc
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt
index 7f70e6883..0cde5344c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt
@@ -31,7 +31,7 @@ object GardenCustomKeybinds {
private fun isEnabled() = GardenAPI.inGarden() && shConfig.keyBindEnabled
- private fun isActive() = isEnabled() && GardenAPI.toolInHand != null
+ private fun isActive() = isEnabled() && GardenAPI.toolInHand != null && Minecraft.getMinecraft().currentScreen == null
private fun isHeld(keyCode: Int): Boolean {