aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-11-28 00:51:21 +0100
committerLinnea Gräf <nea@nea.moe>2025-11-28 00:51:21 +0100
commiteeb65f4913f9e6807e32edf1c94434a04ce3f239 (patch)
tree361f158d8a6b8b505104347736834085f1f53e23 /src/main/java
parent3dc343a4dfd0b5c30543321b77227d6c4fe5697e (diff)
downloadFirmament-eeb65f4913f9e6807e32edf1c94434a04ce3f239.tar.gz
Firmament-eeb65f4913f9e6807e32edf1c94434a04ce3f239.tar.bz2
Firmament-eeb65f4913f9e6807e32edf1c94434a04ce3f239.zip
feat: itemlist setting component? early implHEADmc-1.21.10
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/moe/nea/firmament/mixins/MixinHandledScreen.java2
1 files changed, 1 insertions, 1 deletions
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<T extends AbstractContainerMenu> {
private void onMouseReleased(MouseButtonEvent click, CallbackInfoReturnable<Boolean> 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);