Use INVOKE_STRING to target inst

This commit is contained in:
Moulberry committed 2024-11-30 14:49:06 +08:00
1 parent 7c97b9d43c
commit 519cdf2dea
1 file changed
+4 -2
@@ -342,9 +342,11 @@ public abstract class MixinMinecraft implements MinecraftExt {
this.applyKeyframes.set(true);
}
@Inject(method = "runTick", at = @At(value = "INVOKE",
@Inject(method = "runTick", at = @At(
value = "INVOKE_STRING",
target = "Lcom/mojang/blaze3d/platform/Window;setErrorSection(Ljava/lang/String;)V",
ordinal = 1), cancellable = true)
args = "ldc=Render"
), cancellable = true)
public void runTick_setErrorSection(boolean bl, CallbackInfo ci) {
ReplayServer replayServer = Flashback.getReplayServer();
if (replayServer == null) {