mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-21 03:51:41 -08:00
Merge 000c660802 into 9150360f74
This commit is contained in:
commit
c5484479fd
2 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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){
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue