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 /forge/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 'forge/src/main/java')
| -rw-r--r-- | forge/src/main/java/me/shedaniel/rei/mixin/forge/MixinInputConstants.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/forge/src/main/java/me/shedaniel/rei/mixin/forge/MixinInputConstants.java b/forge/src/main/java/me/shedaniel/rei/mixin/forge/MixinInputConstants.java index 24069895f..1e6324711 100644 --- a/forge/src/main/java/me/shedaniel/rei/mixin/forge/MixinInputConstants.java +++ b/forge/src/main/java/me/shedaniel/rei/mixin/forge/MixinInputConstants.java @@ -24,6 +24,7 @@ package me.shedaniel.rei.mixin.forge; 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); } |
