This commit is contained in:
Anuken
2020-12-27 20:41:29 -05:00
parent 72686b3ef8
commit 3ef67cab69
2 changed files with 8 additions and 5 deletions

View File

@@ -755,9 +755,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
}
public void powerGraphRemoved(){
if(power == null){
return;
}
if(power == null) return;
power.graph.remove(self());
for(int i = 0; i < power.links.size; i++){

View File

@@ -629,8 +629,8 @@ public class MobileInput extends InputHandler implements GestureListener{
}
@Override
public void update(){
super.update();
public void updateState(){
super.updateState();
if(state.isMenu()){
selectRequests.clear();
@@ -639,6 +639,11 @@ public class MobileInput extends InputHandler implements GestureListener{
manualShooting = false;
payloadTarget = null;
}
}
@Override
public void update(){
super.update();
if(player.dead()){
mode = none;