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();