Skip to content

Commit bc873dc

Browse files
committed
only save the file when necessary
1 parent 1f3963f commit bc873dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/main/java/at/helpch/chatchat/config/ConfigFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ public ConfigFactory(@NotNull final Path dataFolder, @NotNull final ChatChatPlug
8888
if (!Files.exists(path)) {
8989
Files.createFile(path);
9090
node.set(clazz, config);
91+
loader.save(node);
9192
}
9293

93-
loader.save(node);
9494
return config;
9595
} catch (final IOException exception) {
9696
exception.printStackTrace();

0 commit comments

Comments
 (0)