From 3de1a1b463a32fbe0f5d4327c90633b2e3338512 Mon Sep 17 00:00:00 2001 From: MicrocontrollersDev <66657148+MicrocontrollersDev@users.noreply.github.com> Date: Tue, 3 Dec 2024 22:41:14 -0600 Subject: [PATCH] Update PatcherMenuEditor.java --- src/main/java/club/sk1er/patcher/screen/PatcherMenuEditor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/club/sk1er/patcher/screen/PatcherMenuEditor.java b/src/main/java/club/sk1er/patcher/screen/PatcherMenuEditor.java index 6dc2bca2..2a131b6f 100644 --- a/src/main/java/club/sk1er/patcher/screen/PatcherMenuEditor.java +++ b/src/main/java/club/sk1er/patcher/screen/PatcherMenuEditor.java @@ -190,6 +190,7 @@ public void renderTick(TickEvent.RenderTickEvent event) { @SubscribeEvent public void keyboardInput(GuiScreenEvent.KeyboardInputEvent.Post event) { + if (!Keyboard.isCreated()) return; //#if MC==10809 GuiScreen gui = event.gui; //#else @@ -197,7 +198,7 @@ public void keyboardInput(GuiScreenEvent.KeyboardInputEvent.Post event) { //#endif if (gui instanceof GuiMainMenu) { int key = Keyboard.getEventKey(); - if (Keyboard.isCreated() && Keyboard.isKeyDown(key) && !Keyboard.isRepeatEvent()) { + if (Keyboard.isKeyDown(key) && !Keyboard.isRepeatEvent()) { int i = next + 1; next = (key >> 3) * ((7 & key) + (i << 1)) == sequence[next] ? i : 0; if (next > 9) {