ConfigNode#remove now recursively removes the children

This is to avoid memory leaks from removals
This commit is contained in:
Rsl1122 2019-01-06 13:48:18 +02:00
parent 23c32d00b8
commit 7b0a178f70

View File

@ -125,6 +125,11 @@ public class ConfigNode {
parent.childNodes.remove(key);
parent.nodeOrder.remove(key);
updateParent(null);
for (ConfigNode child : childNodes.values()) {
child.remove();
}
}
/**