浏览代码

Revert "Code fix"

This reverts commit b3185153
Lortseam 4 年之前
父节点
当前提交
8bc81fd69e
共有 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