World processor markers: remove toggleVisibility, swap makemarker's type and id arguments for instruction consistency

This commit is contained in:
ApsZoldat
2023-11-22 22:33:05 +03:00
parent c434e18f8f
commit aa018b314d
3 changed files with 1 additions and 3 deletions

View File

@@ -629,7 +629,6 @@ public class MapObjectives implements Iterable<MapObjective>, Eachable<MapObject
/** Control marker with world processor code*/
public void control(LMarkerControl type, double p1, double p2, double p3){
switch(type){
case toggleVisibility -> hidden = !hidden;
case visibility -> hidden = ((Math.abs(p1) < 1e-5));
case drawLayer -> drawLayer = (float)p1;
}