Store original character name in mind.

This commit is contained in:
Pieter-Jan Briers
2020-04-18 00:38:19 +02:00
parent 9d130d98d3
commit c4f147bab4
3 changed files with 10 additions and 3 deletions

View File

@@ -63,7 +63,8 @@ namespace Content.Server.Observer
var entityManager = IoCManager.Resolve<IEntityManager>();
var ghost = entityManager.SpawnEntity("MobObserver", position);
ghost.Name = name;
ghost.Name = mind.CharacterName;
var ghostComponent = ghost.GetComponent<GhostComponent>();
ghostComponent.CanReturnToBody = canReturn;