Nestable set iteration

This commit is contained in:
Anuken
2019-10-13 12:11:28 -04:00
parent a09320cb4a
commit 6743bd144f
4 changed files with 5 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ public class DeployDialog extends FloatingDialog{
for(ZoneNode node : nodes){
node.allChildren.clear();
node.allChildren.addAll(node.children);
for(ZoneNode other : new ObjectSetIterator<>(nodes)){
for(ZoneNode other : nodes){
if(other.zone.requirements.contains(req -> req.zone() == node.zone)){
node.allChildren.add(other);
}