Merge 1.19.2 into 1.19.4

This commit is contained in:
embeddedt 2023-07-23 18:33:33 -04:00
commit b24f82d257
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
3 changed files with 5 additions and 1 deletions

View File

@ -41,6 +41,8 @@ public class ModernFixMixinPlugin implements IMixinConfigPlugin {
if (option.isUserDefined()) {
source = "user configuration";
} else if (!ModernFixPlatformHooks.isLoadingNormally()) {
source = "load error";
} else if (option.isModDefined()) {
source = "mods [" + String.join(", ", option.getDefiningMods()) + "]";
}

View File

@ -242,7 +242,7 @@ public class ModernFixEarlyConfig {
private void disableIfModPresent(String configName, String... ids) {
for(String id : ids) {
if(modPresent(id)) {
if(!ModernFixPlatformHooks.isLoadingNormally() || modPresent(id)) {
Option option = this.options.get(configName);
if(option != null)
option.addModOverride(false, id);

View File

@ -69,6 +69,8 @@ public class ModernFixPlatformHooksImpl {
}
public static boolean isLoadingNormally() {
if(!LoadingModList.get().getErrors().isEmpty())
return false;
return ModLoader.isLoadingStateValid();
}