Overlay testing

This commit is contained in:
Anuken
2019-04-12 23:03:34 -04:00
parent c0e425cf46
commit 816ae84005
25 changed files with 3527 additions and 3274 deletions

View File

@@ -234,7 +234,7 @@ public abstract class InputHandler implements InputProcessor{
boolean canMine(Tile tile){
return !Core.scene.hasMouse()
&& tile.drop() != null && tile.drop().hardness <= player.mech.drillPower
&& !(tile.floor().playerUnmineable && tile.overlay() == Blocks.air)
&& !(tile.floor().playerUnmineable && tile.overlay().itemDrop == null)
&& player.acceptsItem(tile.drop())
&& tile.block() == Blocks.air && player.dst(tile.worldx(), tile.worldy()) <= Player.mineDistance;
}