Fixed objectives disappearing for no reason

This commit is contained in:
Anuken
2023-04-08 21:55:20 -04:00
parent bce9ecc520
commit cdf14bb381

View File

@@ -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;
}
}