From cdf14bb381011d532d715da7ae695f42805c0a0f Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 8 Apr 2023 21:55:20 -0400 Subject: [PATCH] Fixed objectives disappearing for no reason --- core/src/mindustry/editor/MapObjectivesDialog.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/editor/MapObjectivesDialog.java b/core/src/mindustry/editor/MapObjectivesDialog.java index 57882f0b44..9642ea5126 100644 --- a/core/src/mindustry/editor/MapObjectivesDialog.java +++ b/core/src/mindustry/editor/MapObjectivesDialog.java @@ -482,7 +482,9 @@ public class MapObjectivesDialog extends BaseDialog{ loop: for(int y = 0; y < rows; y++){ for(int x = 0; x < columns; x++){ - canvas.tilemap.createTile(x * w, bounds - 1 - y * 2, objectives.get(i++)); + if(canvas.tilemap.createTile(x * w, y, objectives.get(i))){ + i++; + } if(i >= objectives.size) break loop; } }