You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/yatopiamc/c2me/common/config/C2MEConfig.java
+13-7Lines changed: 13 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,10 @@ public class C2MEConfig {
22
22
.build();
23
23
config.load();
24
24
25
-
asyncIoConfig = newAsyncIoConfig(ConfigUtils.getValue(config, "asyncIO", CommentedConfig::inMemory, "Configuration for async io system"));
26
-
threadedWorldGenConfig = newThreadedWorldGenConfig(ConfigUtils.getValue(config, "threadedWorldGen", CommentedConfig::inMemory, "Configuration for threaded world generation"));
asyncIoConfig = newAsyncIoConfig(ConfigUtils.getValue(configScope, "asyncIO", CommentedConfig::inMemory, "Configuration for async io system"));
27
+
threadedWorldGenConfig = newThreadedWorldGenConfig(ConfigUtils.getValue(configScope, "threadedWorldGen", CommentedConfig::inMemory, "Configuration for threaded world generation"));
28
+
configScope.removeUnusedKeys();
27
29
config.save();
28
30
config.close();
29
31
C2MEMod.LOGGER.info("Configuration loaded successfully after {}ms", (System.nanoTime() - startTime) / 1_000_000.0);
@@ -35,8 +37,10 @@ public static class AsyncIoConfig {
35
37
36
38
publicAsyncIoConfig(CommentedConfigconfig) {
37
39
Preconditions.checkNotNull(config, "asyncIo config is not present");
this.allowThreadedFeatures = ConfigUtils.getValue(config, "allowThreadedFeatures", () -> false, "Whether to allow feature generation (world decorations like trees, ores and etc.) run in parallel");
this.allowThreadedFeatures = ConfigUtils.getValue(configScope, "allowThreadedFeatures", () -> false, "Whether to allow feature generation (world decorations like trees, ores and etc.) run in parallel");
0 commit comments