Turns out we don't need to spawn a timer to delete ghosts anymore

This commit is contained in:
zumorica
2020-04-17 19:23:06 +02:00
parent 02ccc6dc45
commit c2e328e5ae
3 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ namespace Content.Server.Observer
if (mind.VisitingEntity != null)
{
mind.UnVisit();
Timer.Spawn(100, mind.VisitingEntity.Delete);
mind.VisitingEntity.Delete();
}
var position = player.AttachedEntity?.Transform.GridPosition ?? IoCManager.Resolve<IGameTicker>().GetObserverSpawnPoint();