ContainerSlot deletes contained entity on deletion.
This commit is contained in:
@@ -49,5 +49,12 @@ namespace Content.Server.GameObjects
|
||||
{
|
||||
ContainedEntity = null;
|
||||
}
|
||||
|
||||
public override void Shutdown()
|
||||
{
|
||||
base.Shutdown();
|
||||
|
||||
ContainedEntity?.Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user