diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-27 16:07:03 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-27 16:07:03 +0200 |
commit | 1ce6b2bbd29b026efafdc752c79d7aa581f4de99 (patch) | |
tree | ca66fc395b688b1623dcfa8900cd33e78ccc0638 /src/main | |
parent | d909692ac051ffa60d77e0c86056ae7cba7f2d14 (diff) | |
download | skyhanni-1ce6b2bbd29b026efafdc752c79d7aa581f4de99.tar.gz skyhanni-1ce6b2bbd29b026efafdc752c79d7aa581f4de99.tar.bz2 skyhanni-1ce6b2bbd29b026efafdc752c79d7aa581f4de99.zip |
Fixed hotkey working while inside an inventory/chat/etc
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt | 2 |
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 { |