From 833ee6b70604b8bfd6da6596d37769f0a405d447 Mon Sep 17 00:00:00 2001 From: Morb0 <14136326+Morb0@users.noreply.github.com> Date: Tue, 3 Oct 2023 15:50:05 +0300 Subject: [PATCH] Hotfix join queue resolve in status shell --- Content.Server/GameTicking/GameTicker.StatusShell.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameTicking/GameTicker.StatusShell.cs b/Content.Server/GameTicking/GameTicker.StatusShell.cs index ff1e7e98bf7..41f57603fa9 100644 --- a/Content.Server/GameTicking/GameTicker.StatusShell.cs +++ b/Content.Server/GameTicking/GameTicker.StatusShell.cs @@ -35,7 +35,7 @@ private void GetStatusResponse(JsonNode jObject) lock (_statusShellLock) { // Corvax-Queue-Start - var players = IoCManager.Instance!.TryResolveType(out var joinQueueManager) + var players = IoCManager.Instance?.TryResolveType(out var joinQueueManager) ?? false ? joinQueueManager.ActualPlayersCount : _playerManager.PlayerCount; // Corvax-Queue-End