diff options
| author | shedaniel <daniel@shedaniel.me> | 2025-11-25 15:51:07 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2025-11-25 15:51:28 +0800 |
| commit | bcef0b6c1e151fc46ba3641cb29060c0a4c6ecb7 (patch) | |
| tree | 0cbfa39eefa2ef21f5906f37e34c0fb7387e8d86 /fabric/src/main/java | |
| parent | 4af1ca2ce69a0102963e9cb3bfcc9afc09ee5e48 (diff) | |
| download | RoughlyEnoughItems-bcef0b6c1e151fc46ba3641cb29060c0a4c6ecb7.tar.gz RoughlyEnoughItems-bcef0b6c1e151fc46ba3641cb29060c0a4c6ecb7.tar.bz2 RoughlyEnoughItems-bcef0b6c1e151fc46ba3641cb29060c0a4c6ecb7.zip | |
Update to 1.21.9
Diffstat (limited to 'fabric/src/main/java')
| -rw-r--r-- | fabric/src/main/java/me/shedaniel/rei/mixin/fabric/MixinInputConstants.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fabric/src/main/java/me/shedaniel/rei/mixin/fabric/MixinInputConstants.java b/fabric/src/main/java/me/shedaniel/rei/mixin/fabric/MixinInputConstants.java index a32dbe0f4..63a5e809c 100644 --- a/fabric/src/main/java/me/shedaniel/rei/mixin/fabric/MixinInputConstants.java +++ b/fabric/src/main/java/me/shedaniel/rei/mixin/fabric/MixinInputConstants.java @@ -24,6 +24,7 @@ package me.shedaniel.rei.mixin.fabric; import com.mojang.blaze3d.platform.InputConstants; +import com.mojang.blaze3d.platform.Window; import com.mojang.blaze3d.systems.RenderSystem; import me.shedaniel.rei.api.client.config.ConfigObject; import org.spongepowered.asm.mixin.Mixin; @@ -35,7 +36,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; @Mixin(InputConstants.class) public class MixinInputConstants { @Inject(method = "isKeyDown", at = @At("HEAD"), cancellable = true) - private static void isKeyDown(long windowId, int key, CallbackInfoReturnable<Boolean> cir) { + private static void isKeyDown(Window window, int key, CallbackInfoReturnable<Boolean> cir) { if (isPatchingAsyncThreadCrash() && !RenderSystem.isOnRenderThread()) { cir.setReturnValue(false); } |
