Fix cream pie crash due to client deletion (#8234)

This commit is contained in:
Jacob Tong
2022-05-17 02:56:17 -07:00
committed by GitHub
parent af926c5279
commit 7ed6e28bc5
2 changed files with 2 additions and 2 deletions

View File

@@ -27,6 +27,8 @@ namespace Content.Server.Nutrition.EntitySystems
{
_spillableSystem.SpillAt(creamPie.Owner, solution, "PuddleSmear", false);
}
EntityManager.QueueDeleteEntity(uid);
}
protected override void CreamedEntity(EntityUid uid, CreamPiedComponent creamPied, ThrowHitByEvent args)