aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/firmament/mixins
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-07-25 19:48:22 +0200
committernea <nea@nea.moe>2023-07-25 19:48:22 +0200
commit3375907c44704b968f06ac996cb389c4e29b3826 (patch)
tree07dcc268946d2966806ac814646512861f16b8c9 /src/main/java/moe/nea/firmament/mixins
parent0aacb6b965852647fde85045882b6aa6cf58c287 (diff)
downloadfirmament-3375907c44704b968f06ac996cb389c4e29b3826.tar.gz
firmament-3375907c44704b968f06ac996cb389c4e29b3826.tar.bz2
firmament-3375907c44704b968f06ac996cb389c4e29b3826.zip
Fix some issues idk
Diffstat (limited to 'src/main/java/moe/nea/firmament/mixins')
-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 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);
}
}