From 4e080593aabc649e6e3c3e630d34a63f3cf33b60 Mon Sep 17 00:00:00 2001 From: Debug <49997488+DebugOk@users.noreply.github.com> Date: Wed, 21 Feb 2024 00:34:36 +0100 Subject: [PATCH] Incorrect math resulting in false negative Webedit ops Signed-off-by: Debug <49997488+DebugOk@users.noreply.github.com> --- Content.Server/Connection/ConnectionManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Connection/ConnectionManager.cs b/Content.Server/Connection/ConnectionManager.cs index e93f4c0ddf..d834fe1332 100644 --- a/Content.Server/Connection/ConnectionManager.cs +++ b/Content.Server/Connection/ConnectionManager.cs @@ -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)