Revert "Mind ecs" (#14881)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Content.Server.Mind;
|
||||
using Content.Server.Mind.Components;
|
||||
using Content.Server.Players;
|
||||
using Content.Shared.Administration;
|
||||
@@ -45,7 +44,7 @@ namespace Content.Server.Administration.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_entities.HasComponent<MindContainerComponent>(target))
|
||||
if (!_entities.HasComponent<MindComponent>(target))
|
||||
{
|
||||
shell.WriteLine(Loc.GetString("shell-entity-is-not-mob"));
|
||||
return;
|
||||
@@ -55,8 +54,7 @@ namespace Content.Server.Administration.Commands
|
||||
|
||||
DebugTools.AssertNotNull(mind);
|
||||
|
||||
var mindSystem = _entities.System<MindSystem>();
|
||||
mindSystem.TransferTo(mind!, target);
|
||||
mind!.TransferTo(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user