This commit is contained in:
Anuken
2026-09-12 12:41:42 -04:00
parent 78646f512e
commit 89527f879b
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -413,6 +413,7 @@ public class Logic implements ApplicationListener{
//map is over, no more world processor objective stuff
state.rules.disableWorldProcessors = true;
state.markers.clear(); //TODO: should this optional?
Call.clearObjectives();
+7
View File
@@ -17,6 +17,13 @@ public class MapMarkers implements Iterable<ObjectiveMarker>{
public Seq<ObjectiveMarker> mapMarkers = new Seq<>(false);
public Seq<ObjectiveMarker> lightMarkers = new Seq<>(false);
public void clear(){
worldMarkers.clear();
mapMarkers.clear();
lightMarkers.clear();
map.clear();
}
public void add(int id, ObjectiveMarker marker){
if(marker == null) return;
var prev = map.put(id, marker);