mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +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()){
|
if(build != null && tile.isCenter()){
|
||||||
builds.add(build);
|
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){
|
for(var build : builds){
|
||||||
|
|||||||
Reference in New Issue
Block a user