Merge 1.19.2 into 1.19.4
This commit is contained in:
commit
512ed02db2
|
|
@ -32,8 +32,8 @@ public class ModernFixMixinPlugin implements IMixinConfigPlugin {
|
||||||
throw new RuntimeException("Could not load configuration file for ModernFix", e);
|
throw new RuntimeException("Could not load configuration file for ModernFix", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.logger.info("Loaded configuration file for ModernFix: {} options available, {} override(s) found",
|
this.logger.info("Loaded configuration file for ModernFix {}: {} options available, {} override(s) found",
|
||||||
config.getOptionCount(), config.getOptionOverrideCount());
|
ModernFixPlatformHooks.getVersionString(), config.getOptionCount(), config.getOptionOverrideCount());
|
||||||
|
|
||||||
config.getOptionMap().values().forEach(option -> {
|
config.getOptionMap().values().forEach(option -> {
|
||||||
if (option.isOverridden()) {
|
if (option.isOverridden()) {
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,6 @@ public class ConfigFixer {
|
||||||
this.actualHandler.accept(modConfigEvent);
|
this.actualHandler.accept(modConfigEvent);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(modConfigEvent.getConfig().getConfigData() != null)
|
|
||||||
ModernFix.LOGGER.warn("Unable to sync on a {} config object", modConfigEvent.getConfig().getConfigData().getClass().getName());
|
|
||||||
this.actualHandler.accept(modConfigEvent);
|
this.actualHandler.accept(modConfigEvent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ import java.lang.reflect.Field;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.function.BiConsumer;
|
import java.util.function.BiConsumer;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
|
|
@ -51,7 +52,12 @@ public class ModernFixPlatformHooksImpl {
|
||||||
|
|
||||||
public static String getVersionString() {
|
public static String getVersionString() {
|
||||||
if(verString == null) {
|
if(verString == null) {
|
||||||
verString = LoadingModList.get().getModFileById("modernfix").getMods().get(0).getVersion().toString();
|
try {
|
||||||
|
verString = ModernFixMixinPlugin.class.getPackage().getImplementationVersion();
|
||||||
|
Objects.requireNonNull(verString);
|
||||||
|
} catch(Throwable e) {
|
||||||
|
verString = "[unknown]";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return verString;
|
return verString;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user