diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-30 23:47:29 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-30 23:47:29 +0200 |
commit | fe2cf26c49b55c8875db954370c5cf2d644fd7ff (patch) | |
tree | b30fa8c1a935793e404de9022883b7c9c9dba581 /src | |
parent | 57d3a145417242d1c733219013490543baca26c5 (diff) | |
download | skyhanni-fe2cf26c49b55c8875db954370c5cf2d644fd7ff.tar.gz skyhanni-fe2cf26c49b55c8875db954370c5cf2d644fd7ff.tar.bz2 skyhanni-fe2cf26c49b55c8875db954370c5cf2d644fd7ff.zip |
Only blocking garden hotkeys shortly after opened signs, not after inventories or chat
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt | 5 |
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 } |