ContainerSlot deletes contained entity on deletion.

This commit is contained in:
Pieter-Jan Briers
2019-03-26 09:35:51 +01:00
parent 068e8949c2
commit 3b83ba9f65
2 changed files with 8 additions and 1 deletions

View File

@@ -49,5 +49,12 @@ namespace Content.Server.GameObjects
{
ContainedEntity = null;
}
public override void Shutdown()
{
base.Shutdown();
ContainedEntity?.Delete();
}
}
}

2
engine

Submodule engine updated: 34a5649462...2043a1e345