瀏覽代碼

Fix serialization

Lortseam 4 年之前
父節點
當前提交
e0a1023590
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/me/lortseam/completeconfig/ConfigHandler.java

+ 1 - 1
src/main/java/me/lortseam/completeconfig/ConfigHandler.java

@@ -109,7 +109,7 @@ public final class ConfigHandler {
      * Saves the config to a save file.
      */
     public void save() {
-        CommentedConfigurationNode root = CommentedConfigurationNode.root();
+        CommentedConfigurationNode root = loader.createNode();
         config.fetch(root);
         try {
             loader.save(root);