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);
updateParent(null);
for (ConfigNode child : childNodes.values()) {
child.remove();
for (String key : nodeOrder) {
ConfigNode child = childNodes.get(key);
if (child != null) child.remove();
}
}