mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 03:00:29 +03:00
Fixed #12632
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user