From 6bb7d33f40ab6b074c7ae3c30d9613fa3e42edf4 Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Sat, 27 Apr 2024 13:13:49 +0200 Subject: Improvement: Added option to disable custom keybinds while on the barn plot. (#1559) --- .../hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') 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 b696d05ba..f4a401cd5 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 @@ -36,7 +36,7 @@ object GardenCustomKeybinds { map[mcSettings.keyBindSneak] = { config.sneak } } - private fun isEnabled() = GardenAPI.inGarden() && config.enabled + private fun isEnabled() = GardenAPI.inGarden() && config.enabled && !(GardenAPI.onBarnPlot && config.excludeBarn) private fun isActive(): Boolean { if (!isEnabled()) return false -- cgit