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