Move minds, roles, jobs and objectives to shared (#19679)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using Content.Server.GameTicking;
|
||||
using Content.Server.Mind;
|
||||
using Content.Shared.Administration;
|
||||
using Content.Shared.Mind;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Console;
|
||||
using Robust.Shared.Enums;
|
||||
@@ -27,7 +27,7 @@ namespace Content.Server.Chat.Commands
|
||||
if (player.Status != SessionStatus.InGame || player.AttachedEntity == null)
|
||||
return;
|
||||
|
||||
var minds = IoCManager.Resolve<IEntityManager>().System<MindSystem>();
|
||||
var minds = IoCManager.Resolve<IEntityManager>().System<SharedMindSystem>();
|
||||
// This check also proves mind not-null for at the end when the mob is ghosted.
|
||||
if (!minds.TryGetMind(player, out var mindId, out var mind) ||
|
||||
mind.OwnedEntity is not { Valid: true } victim)
|
||||
|
||||
Reference in New Issue
Block a user