Skip to content

Commit

Permalink
Add extra exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Aug 27, 2024
1 parent 8d7c906 commit 3c43b3d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/cleanroommc/fugue/config/FugueConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3c43b3d

Please sign in to comment.