fix: fixed proper check whether lobbys are available in LobbyRunner
This commit is contained in:
parent
b4cac6242b
commit
f61069bb79
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user