Merge 1.19.4 into 1.20
This commit is contained in:
commit
90f6f6d68d
|
|
@ -41,6 +41,8 @@ public class ModernFixMixinPlugin implements IMixinConfigPlugin {
|
||||||
|
|
||||||
if (option.isUserDefined()) {
|
if (option.isUserDefined()) {
|
||||||
source = "user configuration";
|
source = "user configuration";
|
||||||
|
} else if (!ModernFixPlatformHooks.isLoadingNormally()) {
|
||||||
|
source = "load error";
|
||||||
} else if (option.isModDefined()) {
|
} else if (option.isModDefined()) {
|
||||||
source = "mods [" + String.join(", ", option.getDefiningMods()) + "]";
|
source = "mods [" + String.join(", ", option.getDefiningMods()) + "]";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -243,7 +243,7 @@ public class ModernFixEarlyConfig {
|
||||||
|
|
||||||
private void disableIfModPresent(String configName, String... ids) {
|
private void disableIfModPresent(String configName, String... ids) {
|
||||||
for(String id : ids) {
|
for(String id : ids) {
|
||||||
if(modPresent(id)) {
|
if(!ModernFixPlatformHooks.isLoadingNormally() || modPresent(id)) {
|
||||||
Option option = this.options.get(configName);
|
Option option = this.options.get(configName);
|
||||||
if(option != null)
|
if(option != null)
|
||||||
option.addModOverride(false, id);
|
option.addModOverride(false, id);
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,8 @@ public class ModernFixPlatformHooksImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isLoadingNormally() {
|
public static boolean isLoadingNormally() {
|
||||||
|
if(!LoadingModList.get().getErrors().isEmpty())
|
||||||
|
return false;
|
||||||
return ModLoader.isLoadingStateValid();
|
return ModLoader.isLoadingStateValid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user