Skip to content

Commit

Permalink
remove no slotsOpen logic broken rn
Browse files Browse the repository at this point in the history
  • Loading branch information
Fansana committed Jul 4, 2024
1 parent 0d5f1f4 commit 2f3218d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Content.Server/Connection/ConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ private async Task NetMgrOnConnecting(NetConnectingArgs e)

var slots = _cfg.GetCVar(CCVars.WhitelistMinPlayers);

var noSlotsOpen = slots > 0 && slots < connectedPlayers - connectedWhitelist;

if (noSlotsOpen && await _db.GetWhitelistStatusAsync(userId) == false
&& adminData is null)
if (await _db.GetWhitelistStatusAsync(userId) == false && adminData is null)
{
var msg = Loc.GetString(_cfg.GetCVar(CCVars.WhitelistReason));

Expand Down

0 comments on commit 2f3218d

Please sign in to comment.