Update GameStates

Fix FightserverPortal.fightStateMapper
This commit is contained in:
2024-11-12 16:10:46 +01:00
parent 07049c4646
commit 0485713e86
11 changed files with 16 additions and 14 deletions
@@ -28,7 +28,7 @@ import java.util.List;
@UtilityClass
public class GameState {
@Getter
private static GameStates currentState = GameStates.LOBBY;
private static GameStates currentState = GameStates.WAITING;
private static final List<GameStateListener> gameStateListeners = new ArrayList<>();
public static void addGameStateListener(GameStateListener gameStateListener) {
@@ -49,7 +49,7 @@ public class GameState {
public static void reset() {
final GameStates oldState = currentState;
currentState = GameStates.LOBBY;
currentState = GameStates.WAITING;
gameStateChanges(oldState, currentState);
}