Allow placing floors (for mods)

This commit is contained in:
Anuken
2023-05-10 12:37:25 -04:00
parent 778e7d5f3f
commit 0acb112f29
5 changed files with 18 additions and 4 deletions

View File

@@ -303,7 +303,9 @@ public class Tile implements Position, QuadTreeObject, Displayable{
public void setFloorUnder(Floor floor){
Block overlay = this.overlay;
setFloor(floor);
setOverlay(overlay);
if(this.overlay != overlay){
setOverlay(overlay);
}
}
/** Sets the block to air. */