This commit is contained in:
ShadowCommander
2023-03-26 11:31:13 -07:00
committed by GitHub
parent 0e5dc41fe8
commit bfc4da9377
85 changed files with 1150 additions and 684 deletions

View File

@@ -1,3 +1,4 @@
using Content.Server.Mind;
using Content.Server.Mind.Components;
using Content.Server.Players;
using Content.Shared.Administration;
@@ -44,7 +45,7 @@ namespace Content.Server.Administration.Commands
return;
}
if (!_entities.HasComponent<MindComponent>(target))
if (!_entities.HasComponent<MindContainerComponent>(target))
{
shell.WriteLine(Loc.GetString("shell-entity-is-not-mob"));
return;
@@ -54,7 +55,8 @@ namespace Content.Server.Administration.Commands
DebugTools.AssertNotNull(mind);
mind!.TransferTo(target);
var mindSystem = _entities.System<MindSystem>();
mindSystem.TransferTo(mind!, target);
}
}
}