Incorrect math resulting in false negative

Webedit ops

Signed-off-by: Debug <49997488+DebugOk@users.noreply.github.com>
This commit is contained in:
Debug 2024-02-21 00:34:36 +01:00 committed by GitHub
parent 460effb592
commit 4e080593aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ namespace Content.Server.Connection
var slots = _cfg.GetCVar(CCVars.WhitelistMinPlayers);
var nonWhitelistAllowed = slots > 0 && slots < connectedPlayers - connectedWhitelist;
var nonWhitelistAllowed = slots > 0 && slots > connectedPlayers - connectedWhitelist;
if (nonWhitelistAllowed && await _db.GetWhitelistStatusAsync(userId) == false
&& adminData is null)