diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/Lobby.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/Lobby.java index 70269f7..c8d0933 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/Lobby.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/Lobby.java @@ -92,8 +92,11 @@ public class Lobby { badRequests = 0; } + updateTimer(game.state.getActiveCharacter().type); - EntityType currentActiveCharacterType = game.state.getActiveCharacter().type; + } + + void updateTimer(EntityType currentActiveCharacterType) { if (pauseSegment.isPaused()) { turnTimer.clear(); } else if (currentActiveCharacterType == EntityType.P1) {