From fe2cf26c49b55c8875db954370c5cf2d644fd7ff Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 30 Apr 2023 23:47:29 +0200 Subject: Only blocking garden hotkeys shortly after opened signs, not after inventories or chat --- .../skyhanni/features/garden/farming/GardenCustomKeybinds.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 367d7009b..b920cdba6 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 @@ -5,6 +5,7 @@ import at.hannibal2.skyhanni.config.features.Garden import at.hannibal2.skyhanni.features.garden.GardenAPI import at.hannibal2.skyhanni.mixins.transformers.AccessorKeyBinding import net.minecraft.client.Minecraft +import net.minecraft.client.gui.inventory.GuiEditSign import net.minecraft.client.settings.KeyBinding import org.lwjgl.input.Keyboard import org.lwjgl.input.Mouse @@ -37,7 +38,9 @@ object GardenCustomKeybinds { if (GardenAPI.toolInHand == null) return false if (Minecraft.getMinecraft().currentScreen != null) { - lastWindowOpenTime = System.currentTimeMillis() + if (Minecraft.getMinecraft().currentScreen is GuiEditSign) { + lastWindowOpenTime = System.currentTimeMillis() + } return false } -- cgit