File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
common/src/main/java/org/embeddedt/modernfix/core/config Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public static String sanitize(String mixinClassName) {
6060 private final Set <String > mixinOptions = new ObjectOpenHashSet <>();
6161 private final Map <String , String > mixinsMissingMods = new Object2ObjectOpenHashMap <>();
6262
63- public static boolean isFabric = false ;
63+ public static boolean isFabric = ModernFixEarlyConfig . class . getClassLoader (). getResourceAsStream ( "modernfix-fabric.mixins.json" ) != null ;
6464
6565 public Map <String , String > getPermanentlyDisabledMixins () {
6666 return mixinsMissingMods ;
@@ -74,8 +74,6 @@ private void scanForAndBuildMixinOptions() {
7474 if (stream == null )
7575 continue ;
7676 try (Reader reader = new BufferedReader (new InputStreamReader (stream , StandardCharsets .UTF_8 ))) {
77- if (configFile .contains ("fabric" ))
78- isFabric = true ;
7977 JsonObject configObject = (JsonObject )new JsonParser ().parse (reader );
8078 JsonArray mixinList = configObject .getAsJsonArray ("mixins" );
8179 String packageName = configObject .get ("package" ).getAsString ().replace ('.' , '/' );
You can’t perform that action at this time.
0 commit comments