aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt5
1 files changed, 4 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 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
}