Merge 1.18 into 1.19.2
This commit is contained in:
commit
470f8aed5b
|
|
@ -60,7 +60,7 @@ public class ModernFixEarlyConfig {
|
||||||
private final Set<String> mixinOptions = new ObjectOpenHashSet<>();
|
private final Set<String> mixinOptions = new ObjectOpenHashSet<>();
|
||||||
private final Map<String, String> mixinsMissingMods = new Object2ObjectOpenHashMap<>();
|
private final Map<String, String> mixinsMissingMods = new Object2ObjectOpenHashMap<>();
|
||||||
|
|
||||||
public static boolean isFabric = false;
|
public static boolean isFabric = ModernFixEarlyConfig.class.getClassLoader().getResourceAsStream("modernfix-fabric.mixins.json") != null;
|
||||||
|
|
||||||
public Map<String, String> getPermanentlyDisabledMixins() {
|
public Map<String, String> getPermanentlyDisabledMixins() {
|
||||||
return mixinsMissingMods;
|
return mixinsMissingMods;
|
||||||
|
|
@ -74,8 +74,6 @@ public class ModernFixEarlyConfig {
|
||||||
if(stream == null)
|
if(stream == null)
|
||||||
continue;
|
continue;
|
||||||
try(Reader reader = new BufferedReader(new InputStreamReader(stream, StandardCharsets.UTF_8))) {
|
try(Reader reader = new BufferedReader(new InputStreamReader(stream, StandardCharsets.UTF_8))) {
|
||||||
if(configFile.contains("fabric"))
|
|
||||||
isFabric = true;
|
|
||||||
JsonObject configObject = (JsonObject)new JsonParser().parse(reader);
|
JsonObject configObject = (JsonObject)new JsonParser().parse(reader);
|
||||||
JsonArray mixinList = configObject.getAsJsonArray("mixins");
|
JsonArray mixinList = configObject.getAsJsonArray("mixins");
|
||||||
String packageName = configObject.get("package").getAsString().replace('.', '/');
|
String packageName = configObject.get("package").getAsString().replace('.', '/');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user