Skip to content

Commit

Permalink
mhm
Browse files Browse the repository at this point in the history
  • Loading branch information
lzk228 committed Jul 4, 2024
1 parent 49a0216 commit 8328103
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Content.Server/Ghost/GhostCommand.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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");
Expand All @@ -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)

Check failure on line 39 in Content.Server/Ghost/GhostCommand.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'PlayerGameStatus' does not exist in the current context

Check failure on line 39 in Content.Server/Ghost/GhostCommand.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'PlayerGameStatus' does not exist in the current context

Check failure on line 39 in Content.Server/Ghost/GhostCommand.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'PlayerGameStatus' does not exist in the current context

Check failure on line 39 in Content.Server/Ghost/GhostCommand.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'PlayerGameStatus' does not exist in the current context

Check failure on line 39 in Content.Server/Ghost/GhostCommand.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'PlayerGameStatus' does not exist in the current context

Check failure on line 39 in Content.Server/Ghost/GhostCommand.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'PlayerGameStatus' does not exist in the current context

Check failure on line 39 in Content.Server/Ghost/GhostCommand.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'PlayerGameStatus' does not exist in the current context

Check failure on line 39 in Content.Server/Ghost/GhostCommand.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'PlayerGameStatus' does not exist in the current context
{
shell.WriteLine(Loc.GetString("ghost-command-lobby"));
Expand Down

0 comments on commit 8328103

Please sign in to comment.