fix: Renderer update cause blocks to lose their extra and floor data (#12664)

Co-authored-by: NiTiSon <NiTiSon@users.noreply.github.com>
This commit is contained in:
NiTiSon
2026-09-15 00:03:02 -04:00
committed by GitHub
co-authored by NiTiSon
parent b76147ec50
commit f474eab926
+5 -1
View File
@@ -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){