mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-01 18:50:27 +03:00
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:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user