mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
Always send whitelist (#284)
* Update GameTicker.Player.cs * Update sawmill type
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ public sealed partial class JobRequirementsManager
|
||||
|
||||
private void RxWhitelist(MsgWhitelist message)
|
||||
{
|
||||
_sawmill.Info($"Received new whitelist status: {message.Whitelisted}, previous: {_whitelisted}");
|
||||
_sawmill.Debug($"Received new whitelist status: {message.Whitelisted}, previously {_whitelisted}");
|
||||
_whitelisted = message.Whitelisted;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,10 +55,11 @@ namespace Content.Server.GameTicking
|
||||
data.Mind = mindId;
|
||||
data.Whitelisted = await _db.GetWhitelistStatusAsync(session.UserId); // Nyanotrasen - Whitelist
|
||||
session.Data.ContentDataUncast = data;
|
||||
|
||||
_playTimeManager.SendWhitelistCached(session); // Nyanotrasen - Send whitelist status
|
||||
}
|
||||
|
||||
session.ContentData()!.Whitelisted = await _db.GetWhitelistStatusAsync(session.UserId); // Nyanotrasen - Ensure whitelist is correct
|
||||
_playTimeManager.SendWhitelistCached(session); // Nyanotrasen - Send whitelist status
|
||||
|
||||
// Make the player actually join the game.
|
||||
// timer time must be > tick length
|
||||
Timer.Spawn(0, args.Session.JoinGame);
|
||||
|
||||
Reference in New Issue
Block a user