diff options
author | nea <nea@nea.moe> | 2023-07-25 19:48:22 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-07-25 19:48:22 +0200 |
commit | 3375907c44704b968f06ac996cb389c4e29b3826 (patch) | |
tree | 07dcc268946d2966806ac814646512861f16b8c9 /src/main/java/moe/nea/firmament/mixins/MixinHandledScreen.java | |
parent | 0aacb6b965852647fde85045882b6aa6cf58c287 (diff) | |
download | Firmament-3375907c44704b968f06ac996cb389c4e29b3826.tar.gz Firmament-3375907c44704b968f06ac996cb389c4e29b3826.tar.bz2 Firmament-3375907c44704b968f06ac996cb389c4e29b3826.zip |
Fix some issues idk
Diffstat (limited to 'src/main/java/moe/nea/firmament/mixins/MixinHandledScreen.java')
-rw-r--r-- | src/main/java/moe/nea/firmament/mixins/MixinHandledScreen.java | 2 |
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 5a06c47..517a0eb 100644 --- a/src/main/java/moe/nea/firmament/mixins/MixinHandledScreen.java +++ b/src/main/java/moe/nea/firmament/mixins/MixinHandledScreen.java @@ -35,7 +35,7 @@ public class MixinHandledScreen { @Inject(method = "keyPressed", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/screen/ingame/HandledScreen;handleHotbarKeyPressed(II)Z", shift = At.Shift.BEFORE), cancellable = true) public void onKeyPressed(int keyCode, int scanCode, int modifiers, CallbackInfoReturnable<Boolean> cir) { - if (HandledScreenKeyPressedEvent.Companion.publish(new HandledScreenKeyPressedEvent(keyCode, scanCode, modifiers)).getCancelled()) { + if (HandledScreenKeyPressedEvent.Companion.publish(new HandledScreenKeyPressedEvent((HandledScreen<?>) (Object) this, keyCode, scanCode, modifiers)).getCancelled()) { cir.setReturnValue(true); } } |