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

+ 3 - 3
src/main/java/me/lortseam/completeconfig/data/Entry.java

@@ -234,12 +234,12 @@ public class Entry<T> extends EntryBase<T> implements DataPart {
     public void fetch(CommentedConfigurationNode node) {
         try {
             node.set(type, getValue());
-            if (comment != null) {
-                node.comment(comment);
-            }
         } catch (SerializationException e) {
             LOGGER.error("[CompleteConfig] Failed to fetch value from entry!", e);
         }
+        if (comment != null) {
+            node.comment(comment);
+        }
     }
 
     @Override