Move OnGhostAttempt to GhostSystem (#31445)
* Move OnGhostAttempt to GhostSystem * Remove unused dependencies and sort them
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Content.Server.GameTicking;
|
||||
using Content.Server.Popups;
|
||||
using Content.Shared.Administration;
|
||||
using Content.Shared.Mind;
|
||||
@@ -41,7 +40,7 @@ namespace Content.Server.Ghost
|
||||
mind = _entities.GetComponent<MindComponent>(mindId);
|
||||
}
|
||||
|
||||
if (!_entities.System<GameTicker>().OnGhostAttempt(mindId, true, true, mind))
|
||||
if (!_entities.System<GhostSystem>().OnGhostAttempt(mindId, true, true, mind))
|
||||
{
|
||||
shell.WriteLine(Loc.GetString("ghost-command-denied"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user