diff --git a/core/src/mindustry/game/MapObjectives.java b/core/src/mindustry/game/MapObjectives.java index f7391fa3aa..ee617ac49e 100644 --- a/core/src/mindustry/game/MapObjectives.java +++ b/core/src/mindustry/game/MapObjectives.java @@ -627,6 +627,8 @@ public class MapObjectives implements Iterable, Eachable, Eachable, Eachable, Eachable, Eachable, Eachable, Eachable, Eachable, Eachable, Eachable, Eachable pos1.x = (float)p1 * tilesize; - case endPos -> pos2.x = (float)p1 * tilesize; + case pos -> pos.x = (float)p1 * tilesize; + case endPos -> endPos.x = (float)p1 * tilesize; case stroke -> stroke = (float)p1; case color -> color.set(Tmp.c1.fromDouble(p1)); default -> super.control(type, p1, p2, p3); @@ -1118,8 +1089,8 @@ public class MapObjectives implements Iterable, Eachable pos1.y = (float)p2 * tilesize; - case endPos -> pos2.y = (float)p2 * tilesize; + case pos -> pos.y = (float)p2 * tilesize; + case endPos -> endPos.y = (float)p2 * tilesize; default -> super.control(type, p1, p2, p3); } } @@ -1128,13 +1099,19 @@ public class MapObjectives implements Iterable, Eachable, Eachable