fix: fixed proper check whether lobbys are available in LobbyRunner

This commit is contained in:
Yannik Bretschneider 2021-06-06 21:34:50 +02:00
parent b4cac6242b
commit f61069bb79
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ public class LobbyRunner {
}
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 */