mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 06:51:30 -08:00
Fixed #10554
This commit is contained in:
parent
ae75123d3e
commit
80815bf8a1
2 changed files with 3 additions and 1 deletions
|
|
@ -1983,6 +1983,8 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
}
|
||||
|
||||
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() ){
|
||||
droppingItem = false;
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -582,7 +582,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||
}else if(mode == rebuildSelect){
|
||||
rebuildArea(lineStartX, lineStartY, lastLineX, lastLineY);
|
||||
mode = none;
|
||||
}else{
|
||||
}else if(!player.dead()){
|
||||
Tile tile = tileAt(screenX, screenY);
|
||||
|
||||
tryDropItems(tile == null ? null : tile.build, Core.input.mouseWorld(screenX, screenY).x, Core.input.mouseWorld(screenX, screenY).y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue