From 1b033bbac5596608944697d5856c72cbffc62fd8 Mon Sep 17 00:00:00 2001 From: ev chang Date: Fri, 21 Jun 2024 10:17:54 +0700 Subject: [PATCH] Fix issues with re-entrant from ItemTransformer --- .../oneconfig/internal/plugin/asm/OneConfigTweaker.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/asm/OneConfigTweaker.java b/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/asm/OneConfigTweaker.java index 72e62e5b7..4853fdc8e 100644 --- a/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/asm/OneConfigTweaker.java +++ b/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/asm/OneConfigTweaker.java @@ -33,6 +33,7 @@ import net.minecraft.launchwrapper.LaunchClassLoader; import net.minecraftforge.fml.relauncher.CoreModManager; import org.spongepowered.asm.launch.MixinBootstrap; +import org.spongepowered.asm.mixin.MixinEnvironment; import org.spongepowered.asm.mixin.Mixins; import java.io.File; @@ -72,6 +73,8 @@ public OneConfigTweaker() { t.printStackTrace(); } } + + MixinEnvironment.getDefaultEnvironment().addTransformerExclusion("com.creativemd.itemphysic.ItemTransformer"); } @SuppressWarnings("unchecked")