From 277291ce09ec88adeb31c6c218c71607fbb3f56e Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Sat, 2 Mar 2024 10:49:11 -0500 Subject: [PATCH] Cleanup GameState (#9610) * Cleanup GameState * Braint --- core/src/mindustry/core/GameState.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/core/GameState.java b/core/src/mindustry/core/GameState.java index 7c89abe05d..17d3b3bfe9 100644 --- a/core/src/mindustry/core/GameState.java +++ b/core/src/mindustry/core/GameState.java @@ -86,11 +86,12 @@ public class GameState{ } public boolean isPaused(){ - return is(State.paused); + return state == State.paused; } + /** @return whether there is an unpaused game in progress. */ public boolean isPlaying(){ - return (state == State.playing) || (state == State.paused && !isPaused()); + return state == State.playing; } /** @return whether the current state is *not* the menu. */