Don't unvisit before transferring mind (#760)

This commit is contained in:
Víctor Aguilera Puerto
2020-02-29 16:09:03 +01:00
committed by GitHub
parent 60d6b4af7d
commit 4b1fd4cfd1
2 changed files with 0 additions and 6 deletions

View File

@@ -55,9 +55,6 @@ namespace Content.Server.Administration
return;
}
if(mind.IsVisitingEntity)
mind.UnVisit();
mindComponent.Mind?.TransferTo(null);
mind.TransferTo(target);

View File

@@ -40,9 +40,6 @@ namespace Content.Server.GlobalVerbs
var userMind = user.GetComponent<IActorComponent>().playerSession.ContentData().Mind;
var targetMind = target.GetComponent<MindComponent>();
if(userMind.IsVisitingEntity)
userMind.UnVisit();
targetMind.Mind?.TransferTo(null);
userMind.TransferTo(target);
}