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