From f61069bb796b8f2047115027ffbfd89a16477392 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Sun, 6 Jun 2021 21:34:50 +0200 Subject: [PATCH] fix: fixed proper check whether lobbys are available in LobbyRunner --- .../teamname/marvelous/server/lobbymanager/LobbyRunner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyRunner.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyRunner.java index edb1dfb..b1563bc 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyRunner.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyRunner.java @@ -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 */