Fix 3000 errors
This commit is contained in:
@@ -42,9 +42,7 @@ namespace Content.Server.Administration.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
var target = entityManager.GetEntity(eUid);
|
||||
|
||||
if (!IoCManager.Resolve<IEntityManager>().HasComponent<MindComponent>(target))
|
||||
if (!entityManager.HasComponent<MindComponent>(eUid))
|
||||
{
|
||||
shell.WriteLine(Loc.GetString("set-mind-command-target-has-no-mind-message"));
|
||||
return;
|
||||
@@ -69,11 +67,11 @@ namespace Content.Server.Administration.Commands
|
||||
{
|
||||
mind = new Mind.Mind(session.UserId)
|
||||
{
|
||||
CharacterName = IoCManager.Resolve<IEntityManager>().GetComponent<MetaDataComponent>(target).EntityName
|
||||
CharacterName = entityManager.GetComponent<MetaDataComponent>(eUid).EntityName
|
||||
};
|
||||
mind.ChangeOwningPlayer(session.UserId);
|
||||
}
|
||||
mind.TransferTo(target);
|
||||
mind.TransferTo(eUid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user