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 f55d7b879..c03a77a72 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 @@ -126,8 +126,9 @@ public class ConfigNode { parent.nodeOrder.remove(key); updateParent(null); - for (ConfigNode child : childNodes.values()) { - child.remove(); + for (String key : nodeOrder) { + ConfigNode child = childNodes.get(key); + if (child != null) child.remove(); } }