mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-09 12:20:36 +01:00
Fixed ConcurrentModification on ConfigNode#remove
This commit is contained in:
parent
517c7f4498
commit
c4a0e18dd9
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user