forked from SteamWar/SteamWar
Update GameStates
Fix FightserverPortal.fightStateMapper
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user