This commit is contained in:
Anuken
2022-10-16 08:44:08 -04:00
parent 1ef1aeaaf3
commit 215633587d
4 changed files with 30 additions and 40 deletions

View File

@@ -139,6 +139,11 @@ public class MapObjectives implements Iterable<MapObjective>, Eachable<MapObject
return all.count(MapObjective::qualified) > 0;
}
public void clear(){
if(all.size > 0) changed = true;
all.clear();
}
/** Iterates over all qualified in-map objectives. */
public void eachRunning(Cons<MapObjective> cons){
all.each(MapObjective::qualified, cons);