refactor: extracted updateTimer method
This commit is contained in:
		@ -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) {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user