aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-25 15:49:30 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-25 15:49:30 +0100
commite5f301050aaca4fe99449769457404833a2c74ef (patch)
treeb16546c0b00733761add9a74cebe1ef268d31031 /src/main/java/at/hannibal2
parentd7729a67a0387ef57b843b447307b1f1717f1a0d (diff)
downloadskyhanni-e5f301050aaca4fe99449769457404833a2c74ef.tar.gz
skyhanni-e5f301050aaca4fe99449769457404833a2c74ef.tar.bz2
skyhanni-e5f301050aaca4fe99449769457404833a2c74ef.zip
Fixed gui edit hotkey opening the gui while typing in neu search bar
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt3
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()
}