From b9bf4ee79405363cfee650b154889ace5bee0b5a Mon Sep 17 00:00:00 2001 From: Redstonneur1256 <29004178+Redstonneur1256@users.noreply.github.com> Date: Wed, 24 Jan 2024 04:05:14 +0100 Subject: [PATCH] Allow markers to be deleted (#9485) --- core/src/mindustry/logic/LExecutor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index 44e03ef12c..3b67f5a958 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -2049,6 +2049,11 @@ public class LExecutor{ state.markers.add(id, marker); } + @Remote(called = Loc.server, variants = Variant.both, unreliable = true) + public static void removeMarker(int id){ + state.markers.remove(id); + } + @Remote(called = Loc.server, variants = Variant.both, unreliable = true) public static void updateMarker(int id, LMarkerControl control, double p1, double p2, double p3){ var marker = state.markers.get(id);