From f474eab92625c84299b079c8b8231563652cc07b Mon Sep 17 00:00:00 2001 From: NiTiSon <60577131+NiTiSon@users.noreply.github.com> Date: Tue, 15 Sep 2026 07:03:02 +0300 Subject: [PATCH] fix: Renderer update cause blocks to lose their extra and floor data (#12664) Co-authored-by: NiTiSon --- core/src/mindustry/editor/MapEditor.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/editor/MapEditor.java b/core/src/mindustry/editor/MapEditor.java index 2187b57045..e97bfbaadc 100644 --- a/core/src/mindustry/editor/MapEditor.java +++ b/core/src/mindustry/editor/MapEditor.java @@ -78,7 +78,11 @@ public class MapEditor{ if(build != null && tile.isCenter()){ builds.add(build); } - tiles.seti(i, new EditorTile(tile.x, tile.y, tile.floorID(), tile.overlayID(), build == null ? tile.blockID() : 0)); + + var newTile = new EditorTile(tile.x, tile.y, tile.floorID(), tile.overlayID(), build == null ? tile.blockID() : 0); + newTile.floorData = tile.floorData; + newTile.extraData = tile.extraData; + tiles.seti(i, newTile); } for(var build : builds){