Fixed #2591 / Fixed #2591 / Fixed #2589 / Fixed #2587

This commit is contained in:
Anuken
2020-09-18 11:21:50 -04:00
parent c71be9ae32
commit 6b6783f201
21 changed files with 4512 additions and 4335 deletions

View File

@@ -231,8 +231,14 @@ public class MapEditor{
int px = offsetX + x, py = offsetY + y;
if(previous.in(px, py)){
tiles.set(x, y, previous.getn(px, py));
tiles.getn(x, y).x = (short)x;
tiles.getn(x, y).y = (short)y;
Tile tile = tiles.getn(x, y);
tile.x = (short)x;
tile.y = (short)y;
if(tile.build != null && tile.isCenter()){
tile.build.x = x * tilesize + tile.block().offset;
tile.build.y = y * tilesize + tile.block().offset;
}
}else{
tiles.set(x, y, new EditorTile(x, y, Blocks.stone.id, (short)0, (short)0));
}