Fixed ConcurrentModification on ConfigNode#remove

This commit is contained in:
Rsl1122 2019-01-06 21:42:07 +02:00
parent 517c7f4498
commit c4a0e18dd9

View File

@ -126,8 +126,9 @@ public class ConfigNode {
parent.nodeOrder.remove(key); parent.nodeOrder.remove(key);
updateParent(null); updateParent(null);
for (ConfigNode child : childNodes.values()) { for (String key : nodeOrder) {
child.remove(); ConfigNode child = childNodes.get(key);
if (child != null) child.remove();
} }
} }