Skip to content

Commit

Permalink
Fix whitelist silently failing (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
DebugOk authored Oct 23, 2023
1 parent c992863 commit 7720e7a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Content.Server/GameTicking/GameTicker.Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ private async void PlayerStatusChanged(object? sender, SessionStatusEventArgs ar
{
var data = new PlayerData(session.UserId, args.Session.Name);
data.Mind = mindId;
data.Whitelisted = await _db.GetWhitelistStatusAsync(session.UserId); // Nyanotrasen - Whitelist
session.Data.ContentDataUncast = data;
}

Expand Down Expand Up @@ -127,9 +128,6 @@ private async void PlayerStatusChanged(object? sender, SessionStatusEventArgs ar
async void SpawnWaitDb()
{
await _userDb.WaitLoadComplete(session);

session.ContentData()!.Whitelisted = await _db.GetWhitelistStatusAsync(session.UserId); // Nyanotrasen - Whitelist

SpawnPlayer(session, EntityUid.Invalid);
}

Expand Down

0 comments on commit 7720e7a

Please sign in to comment.