From d9624d274ff8d3180ef2c3799af11c1040cded66 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 1 Nov 2022 00:10:07 -0400 Subject: [PATCH] Fixed client pausing when not being able to --- core/src/mindustry/content/UnitTypes.java | 2 +- core/src/mindustry/core/Control.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/content/UnitTypes.java b/core/src/mindustry/content/UnitTypes.java index 83fc5d457b..3af6553456 100644 --- a/core/src/mindustry/content/UnitTypes.java +++ b/core/src/mindustry/content/UnitTypes.java @@ -3216,7 +3216,7 @@ public class UnitTypes{ engineLayer = Layer.effect; speed = 3.7f; maxRange = 6f; - lifetime = 60f * 1.7f; + lifetime = 60f * 1.5f; outlineColor = Pal.darkOutline; health = 55; lowAltitude = true; diff --git a/core/src/mindustry/core/Control.java b/core/src/mindustry/core/Control.java index 933d37ccf3..6bb11ac2e1 100644 --- a/core/src/mindustry/core/Control.java +++ b/core/src/mindustry/core/Control.java @@ -642,7 +642,7 @@ public class Control implements ApplicationListener, Loadable{ state.set(State.playing); } - if(Core.input.keyTap(Binding.pause) && !renderer.isCutscene() && !scene.hasDialog() && !scene.hasKeyboard() && !ui.restart.isShown() && (state.is(State.paused) || state.is(State.playing))){ + if(!net.client() && Core.input.keyTap(Binding.pause) && !renderer.isCutscene() && !scene.hasDialog() && !scene.hasKeyboard() && !ui.restart.isShown() && (state.is(State.paused) || state.is(State.playing))){ state.set(state.isPaused() ? State.playing : State.paused); }