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 System.Diagnostics.CodeAnalysis;
|
||||
using Content.Server.Administration.Logs;
|
||||
using Content.Server.GameTicking;
|
||||
using Content.Server.Ghost;
|
||||
@@ -13,6 +12,7 @@ using Robust.Server.Player;
|
||||
using Robust.Shared.Network;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Utility;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Content.Server.Mind;
|
||||
|
||||
@@ -194,7 +194,7 @@ public sealed class MindSystem : SharedMindSystem
|
||||
component = EnsureComp<MindContainerComponent>(entity.Value);
|
||||
|
||||
if (component.HasMind)
|
||||
_gameTicker.OnGhostAttempt(component.Mind.Value, false);
|
||||
_ghosts.OnGhostAttempt(component.Mind.Value, false);
|
||||
|
||||
if (TryComp<ActorComponent>(entity.Value, out var actor))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user