diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-25 15:49:30 +0100 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-25 15:49:30 +0100 |
| commit | 3c7b562d30977cc9df110fdcc881e17421920c01 (patch) | |
| tree | b16546c0b00733761add9a74cebe1ef268d31031 | |
| parent | 765b8d1a8dd63c5940a34ae40c76216d876d3acf (diff) | |
| download | SkyHanni-3c7b562d30977cc9df110fdcc881e17421920c01.tar.gz SkyHanni-3c7b562d30977cc9df110fdcc881e17421920c01.tar.bz2 SkyHanni-3c7b562d30977cc9df110fdcc881e17421920c01.zip | |
Fixed gui edit hotkey opening the gui while typing in neu search bar
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt b/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt index b833462ef..0b761f442 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt @@ -5,6 +5,7 @@ import at.hannibal2.skyhanni.config.core.config.Position import at.hannibal2.skyhanni.config.core.config.gui.GuiPositionEditor import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.utils.LorenzUtils +import io.github.moulberry.notenoughupdates.NEUOverlay import net.minecraft.client.Minecraft import net.minecraft.client.gui.inventory.GuiChest import net.minecraft.client.gui.inventory.GuiInventory @@ -26,10 +27,10 @@ class GuiEditManager { if (it !is GuiInventory && it !is GuiChest) return } - if (!Keyboard.getEventKeyState()) return val key = if (Keyboard.getEventKey() == 0) Keyboard.getEventCharacter().code + 256 else Keyboard.getEventKey() if (SkyHanniMod.feature.gui.keyBindOpen == key) { + if (NEUOverlay.searchBarHasFocus) return if (isInGui()) return openGuiEditor() } |
