From bc873dcfe6206d4a87746ed372e5403a2b6b70aa Mon Sep 17 00:00:00 2001 From: Kqliber Date: Thu, 29 May 2025 20:57:00 +0100 Subject: [PATCH] only save the file when necessary --- .../src/main/java/at/helpch/chatchat/config/ConfigFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/at/helpch/chatchat/config/ConfigFactory.java b/plugin/src/main/java/at/helpch/chatchat/config/ConfigFactory.java index 028056f4..ed008132 100644 --- a/plugin/src/main/java/at/helpch/chatchat/config/ConfigFactory.java +++ b/plugin/src/main/java/at/helpch/chatchat/config/ConfigFactory.java @@ -88,9 +88,9 @@ public ConfigFactory(@NotNull final Path dataFolder, @NotNull final ChatChatPlug if (!Files.exists(path)) { Files.createFile(path); node.set(clazz, config); + loader.save(node); } - loader.save(node); return config; } catch (final IOException exception) { exception.printStackTrace();