File tree 2 files changed +7
-3
lines changed
src/main/java/dev/architectury/transformer/transformers
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -37,5 +37,6 @@ public class BuiltinProperties {
37
37
public static final String PLATFORM_NAME = "architectury.platform.name" ;
38
38
public static final String PLATFORM_PACKAGE = "architectury.platform.package" ;
39
39
public static final String FORGE_PRODUCTION_NAMESPACE = "architectury.forge.production_namespace" ;
40
+ public static final String FORGE_FIX_MIXINS = "architectury.forge.fix_mixins" ;
40
41
public static final String NEOFORGE_LIKE_REMAPS = "architectury.neoforge.forgelike_remaps" ;
41
42
}
Original file line number Diff line number Diff line change @@ -45,9 +45,12 @@ public class TransformForgeEnvironment implements TinyRemapperTransformer {
45
45
46
46
@ Override
47
47
public List <IMappingProvider > collectMappings () throws Exception {
48
- List <IMappingProvider > providers = mapMixin ();
49
- providers .add (remapEnvironment ());
50
- return providers ;
48
+ boolean fixMixins = System .getProperty (BuiltinProperties .FORGE_FIX_MIXINS , "true" ).equals ("true" );
49
+ if (fixMixins ) {
50
+ List <IMappingProvider > providers = mapMixin ();
51
+ providers .add (remapEnvironment ());
52
+ return providers ;
53
+ } else return new ArrayList <>(Collections .singletonList (remapEnvironment ()));
51
54
}
52
55
53
56
private IMappingProvider remapEnvironment () {
You can’t perform that action at this time.
0 commit comments