fix: fixed bug where spectator joins as player if free spot available
This commit is contained in:
		@ -101,7 +101,13 @@ public class LobbyManager {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        ParticipantType type = lobby.freeSlot();
 | 
			
		||||
        ParticipantType type;
 | 
			
		||||
 | 
			
		||||
        if (role == RoleEnum.SPECTATOR) {
 | 
			
		||||
            type = ParticipantType.Spectator;
 | 
			
		||||
        } else {
 | 
			
		||||
            type = lobby.freeSlot();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        Logger.trace("New participant '{}' has the role '{}'", client.id.getName(), type);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user