From aac3db90d3fe94a11f71b6f8d005cfbde4a740ee Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Tue, 28 Jan 2025 03:14:14 +1000 Subject: [PATCH] Fix MixinThreadExecutor --- .../cortex/voxy/client/mixin/minecraft/MixinThreadExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/cortex/voxy/client/mixin/minecraft/MixinThreadExecutor.java b/src/main/java/me/cortex/voxy/client/mixin/minecraft/MixinThreadExecutor.java index c7f1c2b3..0e920f2a 100644 --- a/src/main/java/me/cortex/voxy/client/mixin/minecraft/MixinThreadExecutor.java +++ b/src/main/java/me/cortex/voxy/client/mixin/minecraft/MixinThreadExecutor.java @@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.injection.Redirect; public abstract class MixinThreadExecutor { @Shadow public static boolean isMemoryError(Throwable exception){return false;}; - @Redirect(method = "executeTask", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/thread/ThreadExecutor;isMemoryError(Ljava/lang/Throwable;)Z"), remap = false) + @Redirect(method = "executeTask", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/thread/ThreadExecutor;isMemoryError(Ljava/lang/Throwable;)Z")) private boolean voxy$forceCrashOnError(Throwable exception) { if (exception instanceof LoadException le) { if (le.getCause() instanceof RuntimeException cause) {