diff --git a/core/src/mindustry/entities/comp/BuildingComp.java b/core/src/mindustry/entities/comp/BuildingComp.java index 28dfdd3d4a..bb51bf5d67 100644 --- a/core/src/mindustry/entities/comp/BuildingComp.java +++ b/core/src/mindustry/entities/comp/BuildingComp.java @@ -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++){ diff --git a/core/src/mindustry/input/MobileInput.java b/core/src/mindustry/input/MobileInput.java index 8619d65d2c..fb9fdbf86b 100644 --- a/core/src/mindustry/input/MobileInput.java +++ b/core/src/mindustry/input/MobileInput.java @@ -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;