Refactor mind and ghost deletion code (#3680)
* Refactor mind and ghost deletion code * Refactor to use EventBus and clean up deletes * Fix mind eject when being deleted * Refactor entity manager calls to use IEntity.EntityManager
This commit is contained in:
@@ -28,7 +28,9 @@ namespace Content.Server.GameObjects.Components.Observer
|
||||
return;
|
||||
}
|
||||
|
||||
Player.ContentData()?.Mind?.TransferTo(_newMob);
|
||||
var mind = Player.ContentData()?.Mind;
|
||||
mind?.TransferTo(_newMob);
|
||||
mind?.UnVisit();
|
||||
Close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user