Skip to content

Commit

Permalink
add way to disable forge hard mixin remaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Jab125 committed Jul 13, 2024
1 parent 252e4e2 commit 8b889bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ public class BuiltinProperties {
public static final String PLATFORM_NAME = "architectury.platform.name";
public static final String PLATFORM_PACKAGE = "architectury.platform.package";
public static final String FORGE_PRODUCTION_NAMESPACE = "architectury.forge.production_namespace";
public static final String FORGE_FIX_MIXINS = "architectury.forge.fix_mixins";
public static final String NEOFORGE_LIKE_REMAPS = "architectury.neoforge.forgelike_remaps";
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ public class TransformForgeEnvironment implements TinyRemapperTransformer {

@Override
public List<IMappingProvider> collectMappings() throws Exception {
List<IMappingProvider> providers = mapMixin();
providers.add(remapEnvironment());
return providers;
boolean fixMixins = System.getProperty(BuiltinProperties.FORGE_FIX_MIXINS, "true").equals("true");
if (fixMixins) {
List<IMappingProvider> providers = mapMixin();
providers.add(remapEnvironment());
return providers;
} else return new ArrayList<>(Collections.singletonList(remapEnvironment()));
}

private IMappingProvider remapEnvironment() {
Expand Down

0 comments on commit 8b889bb

Please sign in to comment.