From 37779ceda15ed2ddec5ee79e7376944af6245db2 Mon Sep 17 00:00:00 2001 From: Ghzdude <44148655+ghzdude@users.noreply.github.com> Date: Thu, 12 Dec 2024 20:31:46 -0700 Subject: [PATCH] high priority --- .../com/cleanroommc/modularui/screen/ClientScreenHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/cleanroommc/modularui/screen/ClientScreenHandler.java b/src/main/java/com/cleanroommc/modularui/screen/ClientScreenHandler.java index c15150e6b..0fb1148e1 100644 --- a/src/main/java/com/cleanroommc/modularui/screen/ClientScreenHandler.java +++ b/src/main/java/com/cleanroommc/modularui/screen/ClientScreenHandler.java @@ -98,7 +98,7 @@ public static void onGuiInit(GuiScreenEvent.InitGuiEvent.Post event) { OverlayStack.foreach(ms -> ms.onResize(event.getGui().width, event.getGui().height), false); } - @SubscribeEvent(priority = EventPriority.LOW) + @SubscribeEvent(priority = EventPriority.HIGH) public static void onGuiInputLow(GuiScreenEvent.KeyboardInputEvent.Pre event) throws IOException { defaultContext.updateEventState(); if (checkGui(event.getGui())) currentScreen.getContext().updateEventState(); @@ -107,7 +107,7 @@ public static void onGuiInputLow(GuiScreenEvent.KeyboardInputEvent.Pre event) th } } - @SubscribeEvent(priority = EventPriority.LOW) + @SubscribeEvent(priority = EventPriority.HIGH) public static void onGuiInputLow(GuiScreenEvent.MouseInputEvent.Pre event) throws IOException { defaultContext.updateEventState(); if (checkGui(event.getGui())) currentScreen.getContext().updateEventState();