fix: fixed proper check whether lobbys are available in LobbyRunner
This commit is contained in:
		@ -38,7 +38,7 @@ public class LobbyRunner {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    boolean canAddLobby() {
 | 
					    boolean canAddLobby() {
 | 
				
			||||||
        return activeLobbies.size() <= Server.getMaxLobbies();
 | 
					        return activeLobbies.size() < Server.getMaxLobbies();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /** Starts a new thread for the current LobbyConnection, and adds it to the currently active lobbies */
 | 
					    /** Starts a new thread for the current LobbyConnection, and adds it to the currently active lobbies */
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user