Fixed #10213
This commit is contained in:
@@ -1674,7 +1674,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||||||
|
|
||||||
/** Tries to begin mining a tile, returns true if successful. */
|
/** Tries to begin mining a tile, returns true if successful. */
|
||||||
boolean tryBeginMine(Tile tile){
|
boolean tryBeginMine(Tile tile){
|
||||||
if(canMine(tile)){
|
if(!player.dead() && canMine(tile)){
|
||||||
player.unit().mineTile = tile;
|
player.unit().mineTile = tile;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1683,7 +1683,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||||||
|
|
||||||
/** Tries to stop mining, returns true if mining was stopped. */
|
/** Tries to stop mining, returns true if mining was stopped. */
|
||||||
boolean tryStopMine(){
|
boolean tryStopMine(){
|
||||||
if(player.unit().mining()){
|
if(!player.dead() && player.unit().mining()){
|
||||||
player.unit().mineTile = null;
|
player.unit().mineTile = null;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1691,7 +1691,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean tryStopMine(Tile tile){
|
boolean tryStopMine(Tile tile){
|
||||||
if(player.unit().mineTile == tile){
|
if(!player.dead() && player.unit().mineTile == tile){
|
||||||
player.unit().mineTile = null;
|
player.unit().mineTile = null;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user