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:
@@ -1,4 +1,4 @@
|
||||
#nullable enable
|
||||
#nullable enable
|
||||
using System;
|
||||
using Content.Server.Eui;
|
||||
using Content.Server.GameObjects.Components.Mobs;
|
||||
@@ -203,9 +203,6 @@ namespace Content.Server.GameObjects.Components.Medical
|
||||
{
|
||||
if (message.Sender == _capturedMind)
|
||||
{
|
||||
//If the captured mind is in a ghost, we want to get rid of it.
|
||||
_capturedMind.VisitingEntity?.Delete();
|
||||
|
||||
//Transfer the mind to the new mob
|
||||
_capturedMind.TransferTo(_bodyContainer.ContainedEntity);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user