diff --git a/Plan/common/src/main/java/com/djrapitops/plan/system/settings/config/ConfigNode.java b/Plan/common/src/main/java/com/djrapitops/plan/system/settings/config/ConfigNode.java index 73f9c4afc..a43d5f904 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/system/settings/config/ConfigNode.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/system/settings/config/ConfigNode.java @@ -23,6 +23,8 @@ */ package com.djrapitops.plan.system.settings.config; +import com.djrapitops.plugin.utilities.Verify; + import java.io.IOException; import java.util.*; import java.util.stream.Collectors; @@ -294,7 +296,7 @@ public class ConfigNode { } // Override value conditionally - if (value == null && from.value != null) { + if (Verify.isEmpty(value) && from.value != null) { value = from.value; } diff --git a/Plan/common/src/test/resources/config/4.5.2-config.yml b/Plan/common/src/test/resources/config/4.5.2-config.yml index 03e9018b6..9f9a5a250 100644 --- a/Plan/common/src/test/resources/config/4.5.2-config.yml +++ b/Plan/common/src/test/resources/config/4.5.2-config.yml @@ -76,7 +76,8 @@ Analysis: DestinationFolder: 'Analysis Results' Data: # How many minutes player has to stay still to be considered AFK - AFKThresholdMinutes: 3 + # TEST: THIS NODE HAS BEEN INTENTIONALLY LEFT EMPTY TO TEST DEFAULT COPYING + AFKThresholdMinutes: Commands: LogUnknownCommands: false CombineCommandAliases: true