Skip to content

Commit

Permalink
мини фикс апстрима
Browse files Browse the repository at this point in the history
  • Loading branch information
VigersRay committed Oct 2, 2024
1 parent b1cac7e commit d900308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Connection/ConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ private bool HasTemporaryBypass(NetUserId user)
// Sunrise-Sponsors-Start
public async Task<bool> HavePrivilegedJoin(NetUserId userId)
{
var adminBypass = _cfg.GetCVar(CCVars.AdminBypassMaxPlayers) && await _dbManager.GetAdminDataForAsync(userId) != null;
var adminBypass = _cfg.GetCVar(CCVars.AdminBypassMaxPlayers) && await _db.GetAdminDataForAsync(userId) != null;
var havePriorityJoin = _sponsorsMgr != null && _sponsorsMgr.HavePriorityJoin(userId); // Sunrise-Sponsors
var wasInGame = EntitySystem.TryGet<GameTicker>(out var ticker) &&
ticker.PlayerGameStatuses.TryGetValue(userId, out var status) &&
Expand Down

0 comments on commit d900308

Please sign in to comment.