From 83281036fdd14fee2b0c81b00b1b66fcfb3d21ed Mon Sep 17 00:00:00 2001 From: lzk <124214523+lzk228@users.noreply.github.com> Date: Thu, 4 Jul 2024 16:54:05 +0200 Subject: [PATCH] mhm --- Content.Server/Ghost/GhostCommand.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Content.Server/Ghost/GhostCommand.cs b/Content.Server/Ghost/GhostCommand.cs index 259ca74712011b..aed686cc7df7f1 100644 --- a/Content.Server/Ghost/GhostCommand.cs +++ b/Content.Server/Ghost/GhostCommand.cs @@ -1,7 +1,6 @@ using Content.Server.GameTicking; using Content.Server.Popups; using Content.Shared.Administration; -using Content.Shared.GameTicking; using Content.Shared.Mind; using Robust.Shared.Console; @@ -11,7 +10,7 @@ namespace Content.Server.Ghost public sealed class GhostCommand : IConsoleCommand { [Dependency] private readonly IEntityManager _entities = default!; - [Dependency] private readonly GameTicker _ticker = default!; + [Dependency] private readonly GameTicker ticker = default!; public string Command => "ghost"; public string Description => Loc.GetString("ghost-command-description"); @@ -36,7 +35,7 @@ public void Execute(IConsoleShell shell, string argStr, string[] args) return; } - if (_ticker.PlayerGameStatuses.TryGetValue(player.UserId, out var status) && + if (ticker.PlayerGameStatuses.TryGetValue(player.UserId, out var status) && status != PlayerGameStatus.JoinedGame) { shell.WriteLine(Loc.GetString("ghost-command-lobby"));