This commit is contained in:
Ovulam5480 2026-01-19 07:04:53 +01:00 committed by GitHub
commit c5484479fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -774,8 +774,7 @@ public class PlacementFragment{
return nextFlowBuild = hoverTile.build;
}
//if the tile has a drop, display the drop
if((hoverTile.drop() != null && hoverTile.block() == Blocks.air) || hoverTile.wallDrop() != null || hoverTile.floor().liquidDrop != null){
if(hoverTile.displayable()){
return hoverTile;
}
}

View file

@ -701,6 +701,12 @@ public class Tile implements Position, QuadTreeObject, Displayable{
overlayData = PackedTileData.overlayData(packed);
}
@Override
public boolean displayable(){
//if the tile has a drop, display the drop
return (drop() != null && block == Blocks.air) || wallDrop() != null || floor.liquidDrop != null;
}
@Override
public void display(Table table){