Fixed overlay floor placement checks in in-game editor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user