Forráskód Böngészése

Revert "Code fix"

This reverts commit b3185153
Lortseam 4 éve
szülő
commit
8bc81fd69e

+ 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