Fixed #2425 (probably)

This commit is contained in:
Anuken
2020-08-25 23:14:11 -04:00
parent 71b55317c1
commit 1461673168
4 changed files with 10 additions and 4 deletions

View File

@@ -566,6 +566,8 @@ public class DesktopInput extends InputHandler{
@Override
public void updateState(){
super.updateState();
if(state.isMenu()){
droppingItem = false;
mode = none;

View File

@@ -236,6 +236,8 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
player.clearUnit();
player.deathTimer = 61f;
((CoreBuild)((BlockUnitc)unit).tile()).requestSpawn(player);
}else if(unit == null){ //just clear the unit (is this used?)
player.clearUnit();
//make sure it's AI controlled, so players can't overwrite each other
@@ -372,7 +374,9 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
}
public void updateState(){
if(state.isMenu()){
controlledType = null;
}
}
public void drawBottom(){