Fixed overlay floor placement checks in in-game editor

This commit is contained in:
Anuken
2025-10-18 18:04:25 -04:00
parent c2108a3ce5
commit fb37ecd1a8
2 changed files with 4 additions and 1 deletions

View File

@@ -79,6 +79,9 @@ public class ConstructBlock extends Block{
tile.setOverlay(overlay);
}else if(block instanceof Floor floor){
tile.setFloor(floor);
if(!(tile.overlay() instanceof OverlayFloor) && !floor.supportsOverlay){
tile.setOverlay(Blocks.air);
}
}else{
tile.setBlock(block, team, rotation);
}