Fix whitelist (#14181)

This commit is contained in:
Kara
2023-02-19 08:28:14 -06:00
committed by GitHub
parent 21fd9ddacf
commit f5d6588e52

View File

@@ -154,7 +154,7 @@ namespace Content.Server.Connection
{ {
var min = _cfg.GetCVar(CCVars.WhitelistMinPlayers); var min = _cfg.GetCVar(CCVars.WhitelistMinPlayers);
var max = _cfg.GetCVar(CCVars.WhitelistMaxPlayers); 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 if (playerCountValid && await _db.GetWhitelistStatusAsync(userId) == false
&& adminData is null) && adminData is null)