From 3c43b3d62533c219ea55094b75b5541b58e578ac Mon Sep 17 00:00:00 2001 From: arcade_kappa Date: Tue, 27 Aug 2024 11:52:18 +0800 Subject: [PATCH] Add extra exclusions --- gradle.properties | 2 +- .../com/cleanroommc/fugue/common/FugueLoadingPlugin.java | 3 +++ src/main/java/com/cleanroommc/fugue/config/FugueConfig.java | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index b39e63c..46e2a7b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,7 +16,7 @@ mappings_version=39-1.12 mod_id=fugue mod_name=Fugue mod_main_class=Fugue -mod_version=0.16.2 +mod_version=0.16.3 mod_base_package=com.cleanroommc.fugue mod_authors=kappa_maintainer mod_description=A mod that patch dead mods for Cleanroom diff --git a/src/main/java/com/cleanroommc/fugue/common/FugueLoadingPlugin.java b/src/main/java/com/cleanroommc/fugue/common/FugueLoadingPlugin.java index 4de0910..515ee93 100644 --- a/src/main/java/com/cleanroommc/fugue/common/FugueLoadingPlugin.java +++ b/src/main/java/com/cleanroommc/fugue/common/FugueLoadingPlugin.java @@ -37,6 +37,9 @@ public class FugueLoadingPlugin implements IFMLLoadingPlugin { static { Launch.classLoader.addTransformerExclusion("com.cleanroommc.fugue.common."); Launch.classLoader.addTransformerExclusion("com.cleanroommc.fugue.helper."); + for (var prefix : FugueConfig.extraTransformExclusions) { + Launch.classLoader.addTransformerExclusion(prefix); + } ConfigManager.register(FugueConfig.class); if (FugueConfig.modPatchConfig.enableEnderCore) { diff --git a/src/main/java/com/cleanroommc/fugue/config/FugueConfig.java b/src/main/java/com/cleanroommc/fugue/config/FugueConfig.java index c058059..a69a8af 100644 --- a/src/main/java/com/cleanroommc/fugue/config/FugueConfig.java +++ b/src/main/java/com/cleanroommc/fugue/config/FugueConfig.java @@ -204,6 +204,12 @@ Add them to list could redirect their toURI() to a decent jar URL. "com.github.terminatornl.laggoggles.client.gui.GuiProfile", }; + @Config.Comment("Use this when you encountered ClassCircularityError.") + @Config.Name("Extra Transform Exclusion") + public static String[] extraTransformExclusions = new String[] { + "org.vivecraft.", + }; + @Config.Comment( """ Target field's final modifier will be removed. No checks will be preformed before removal.