Skip to content

Commit c9a1ed7

Browse files
committed
some more config fixes
1 parent dc62f9d commit c9a1ed7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/falsepattern/lib/config/ConfigurationManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ private static void processConfig(Class<?> configClass) throws IllegalAccessExce
7676
configName = cfg.modid();
7777
}
7878
val rawConfig = new Configuration(configDir.resolve(configName + ".cfg").toFile());
79+
rawConfig.load();
7980
val cat = rawConfig.getCategory(category);
80-
8181
for (val field: configClass.getDeclaredFields()) {
8282
if (field.getAnnotation(Config.Ignore.class) != null) continue;
8383
field.setAccessible(true);
@@ -112,5 +112,6 @@ private static void processConfig(Class<?> configClass) throws IllegalAccessExce
112112
cat.setRequiresWorldRestart(true);
113113
}
114114
}
115+
rawConfig.save();
115116
}
116117
}

0 commit comments

Comments
 (0)