Crash/visual fixes
This commit is contained in:
@@ -241,7 +241,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.floor().playerUnmineable && tile.ore() == Blocks.air)
|
||||
&& player.acceptsItem(tile.drop())
|
||||
&& tile.block() == Blocks.air && player.dst(tile.worldx(), tile.worldy()) <= Player.mineDistance;
|
||||
}
|
||||
|
||||
@@ -365,7 +365,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
|
||||
if(!request.remove && request == lastPlaced && request.block != null){
|
||||
Draw.mixcol();
|
||||
drawArrow(request.block, tile.x, tile.y, request.rotation);
|
||||
if(request.block.rotate) drawArrow(request.block, tile.x, tile.y, request.rotation);
|
||||
}
|
||||
|
||||
Draw.mixcol(Tmp.c1, 1f);
|
||||
|
||||
Reference in New Issue
Block a user