Skip to content

Commit f1c1e42

Browse files
committed
Fix config loading
1 parent 02ac9fe commit f1c1e42

File tree

1 file changed

+2
-2
lines changed
  • common/src/main/java/net/stonebound/simpleircbridge/simpleircbridge

1 file changed

+2
-2
lines changed

common/src/main/java/net/stonebound/simpleircbridge/simpleircbridge/Config.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ private static CommentedFileConfig buildFileConfig(Path path) {
8484
return CommentedFileConfig.builder(path)
8585
.onFileNotFound(MAKE_DIRECTORIES_AND_FILE)
8686
.preserveInsertionOrder()
87+
.sync() // remove me when night config is updated to 3.8.1
8788
.build();
8889
}
8990

@@ -115,8 +116,7 @@ public static void serverStopping(MinecraftServer server) {
115116
commonConfig = null;
116117
}
117118

118-
private static void correctionListener(ConfigSpec.CorrectionAction action, List<String> path, Object incorrectValue,
119-
Object correctedValue) {
119+
private static void correctionListener(ConfigSpec.CorrectionAction action, List<String> path, Object incorrectValue, Object correctedValue) {
120120
String key = String.join(".", path);
121121
switch (action) {
122122
case ADD:

0 commit comments

Comments
 (0)