Compare commits

...

2 Commits

Author SHA1 Message Date
李昌哲
2e6bcaa3f2 Merge b7c9d83078 into 9602736335 2025-08-06 19:00:47 +08:00
Jaffe2718
b7c9d83078 - fix: compatible for the case if the config class of mod updated 2025-08-06 18:48:53 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ public abstract class MidnightConfig {
entries.values().forEach(info -> { entries.values().forEach(info -> {
if (info.field != null && info.entry != null) { if (info.field != null && info.entry != null) {
try { try {
info.value = info.field.get(null); info.value = info.field.get(null) == null ? info.defaultValue : info.field.get(null);
info.tempValue = info.toTemporaryValue(); info.tempValue = info.toTemporaryValue();
info.updateConditions(); info.updateConditions();
} catch (IllegalAccessException ignored) {} } catch (IllegalAccessException ignored) {}

View File

@@ -6,7 +6,7 @@ yarn_mappings=1.21.6+build.1
enabled_platforms=fabric,neoforge enabled_platforms=fabric,neoforge
archives_base_name=midnightlib archives_base_name=midnightlib
mod_version=1.7.5 mod_version=1.7.6-rc.1
maven_group=eu.midnightdust maven_group=eu.midnightdust
release_type=release release_type=release
curseforge_id=488090 curseforge_id=488090