Placeable overlays

This commit is contained in:
Anuken
2023-05-10 12:48:41 -04:00
parent 0acb112f29
commit cac29c4ecc
3 changed files with 6 additions and 3 deletions

View File

@@ -73,7 +73,10 @@ public class ConstructBlock extends Block{
float healthf = tile.build == null ? 1f : tile.build.healthf();
Seq<Building> prev = tile.build instanceof ConstructBuild co ? co.prevBuild : null;
if(block instanceof Floor floor){
if(block instanceof OverlayFloor overlay){
tile.setOverlay(overlay);
tile.setBlock(Blocks.air);
}else if(block instanceof Floor floor){
tile.setFloorUnder(floor);
tile.setBlock(Blocks.air);
}else{