Potential sector data carry-over fix

This commit is contained in:
Anuken
2025-09-19 23:09:37 -04:00
parent 71fbfffaec
commit 7c57211807
5 changed files with 18 additions and 33 deletions

View File

@@ -269,26 +269,6 @@ public class MapEditor{
editor.flushOp();
}
public void addFloorCliffs(){
for(Tile tile : world.tiles){
if(!tile.floor().hasSurface() || tile.block() == Blocks.cliff) continue;
int rotation = 0;
for(int i = 0; i < 8; i++){
Tile other = world.tiles.get(tile.x + Geometry.d8[i].x, tile.y + Geometry.d8[i].y);
if(other != null && !other.floor().hasSurface()){
rotation |= (1 << i);
}
}
if(rotation != 0){
tile.setBlock(Blocks.cliff);
}
tile.data = (byte)rotation;
}
}
public void drawCircle(int x, int y, Cons<Tile> drawer){
int clamped = (int)brushSize;
for(int rx = -clamped; rx <= clamped; rx++){

View File

@@ -707,7 +707,6 @@ public class MapEditorDialog extends Dialog implements Disposable{
}
}).margin(0).left().growY();
cont.table(t -> t.add(view).grow()).grow();
cont.table(this::addBlockSelection).right().growY();