refactor: extracted updateTimer method
This commit is contained in:
parent
4e2e0bd622
commit
6eff0a4813
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user