Fixed #10554
This commit is contained in:
@@ -1983,6 +1983,8 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void tryDropItems(@Nullable Building build, float x, float y){
|
public void tryDropItems(@Nullable Building build, float x, float y){
|
||||||
|
if(player.dead()) return;
|
||||||
|
|
||||||
if(!droppingItem || player.unit().stack.amount <= 0 || canTapPlayer(x, y) || state.isPaused() ){
|
if(!droppingItem || player.unit().stack.amount <= 0 || canTapPlayer(x, y) || state.isPaused() ){
|
||||||
droppingItem = false;
|
droppingItem = false;
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -582,7 +582,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||||||
}else if(mode == rebuildSelect){
|
}else if(mode == rebuildSelect){
|
||||||
rebuildArea(lineStartX, lineStartY, lastLineX, lastLineY);
|
rebuildArea(lineStartX, lineStartY, lastLineX, lastLineY);
|
||||||
mode = none;
|
mode = none;
|
||||||
}else{
|
}else if(!player.dead()){
|
||||||
Tile tile = tileAt(screenX, screenY);
|
Tile tile = tileAt(screenX, screenY);
|
||||||
|
|
||||||
tryDropItems(tile == null ? null : tile.build, Core.input.mouseWorld(screenX, screenY).x, Core.input.mouseWorld(screenX, screenY).y);
|
tryDropItems(tile == null ? null : tile.build, Core.input.mouseWorld(screenX, screenY).x, Core.input.mouseWorld(screenX, screenY).y);
|
||||||
|
|||||||
Reference in New Issue
Block a user