Ghosts are now spawned specifically via map coordinates (#4747)
Ought to fix #3987 and ghost blackscreen
This commit is contained in:
@@ -72,7 +72,7 @@ namespace Content.Server.GameTicking.Presets
|
|||||||
}
|
}
|
||||||
|
|
||||||
var entityManager = IoCManager.Resolve<IEntityManager>();
|
var entityManager = IoCManager.Resolve<IEntityManager>();
|
||||||
var ghost = entityManager.SpawnEntity("MobObserver", position);
|
var ghost = entityManager.SpawnEntity("MobObserver", position.ToMap(entityManager));
|
||||||
ghost.Name = mind.CharacterName ?? string.Empty;
|
ghost.Name = mind.CharacterName ?? string.Empty;
|
||||||
|
|
||||||
var ghostComponent = ghost.GetComponent<GhostComponent>();
|
var ghostComponent = ghost.GetComponent<GhostComponent>();
|
||||||
|
|||||||
Reference in New Issue
Block a user