From: Kara Date: Sun, 19 Feb 2023 14:28:14 +0000 (-0600) Subject: Fix whitelist (#14181) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=f5d6588e52ea06c42d64a377ce702553387baba4;p=space-station-14.git Fix whitelist (#14181) --- diff --git a/Content.Server/Connection/ConnectionManager.cs b/Content.Server/Connection/ConnectionManager.cs index e1f370a972..febdb56e32 100644 --- a/Content.Server/Connection/ConnectionManager.cs +++ b/Content.Server/Connection/ConnectionManager.cs @@ -154,7 +154,7 @@ namespace Content.Server.Connection { var min = _cfg.GetCVar(CCVars.WhitelistMinPlayers); var max = _cfg.GetCVar(CCVars.WhitelistMaxPlayers); - var playerCountValid = _plyMgr.PlayerCount > min && _plyMgr.PlayerCount < max; + var playerCountValid = _plyMgr.PlayerCount >= min && _plyMgr.PlayerCount < max; if (playerCountValid && await _db.GetWhitelistStatusAsync(userId) == false && adminData is null)