From eeb65f4913f9e6807e32edf1c94434a04ce3f239 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 28 Nov 2025 00:51:21 +0100 Subject: feat: itemlist setting component? early impl --- src/main/java/moe/nea/firmament/mixins/MixinHandledScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/moe/nea/firmament/mixins/MixinHandledScreen.java b/src/main/java/moe/nea/firmament/mixins/MixinHandledScreen.java index c7555fb..bbeaf48 100644 --- a/src/main/java/moe/nea/firmament/mixins/MixinHandledScreen.java +++ b/src/main/java/moe/nea/firmament/mixins/MixinHandledScreen.java @@ -53,7 +53,7 @@ public abstract class MixinHandledScreen { private void onMouseReleased(MouseButtonEvent click, CallbackInfoReturnable cir) { var self = (AbstractContainerScreen) (Object) this; var clickEvent = new HandledScreenClickEvent(self, click.x(), click.y(), click.button()); - var keyEvent = new HandledScreenKeyReleasedEvent(self, GenericInputAction.mouse(click), InputModifiers.current()); + var keyEvent = new HandledScreenKeyReleasedEvent(self, GenericInputAction.mouse(click), InputModifiers.of(click.modifiers())); if (HandledScreenClickEvent.Companion.publish(clickEvent).getCancelled() || HandledScreenKeyReleasedEvent.Companion.publish(keyEvent).getCancelled()) { cir.setReturnValue(true); -- cgit