Skip to content

Commit

Permalink
Fix cream pie crash due to client deletion (space-wizards#8234)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowCommander authored May 17, 2022
1 parent af926c5 commit 7ed6e28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ protected override void SplattedCreamPie(EntityUid uid, CreamPieComponent creamP
{
_spillableSystem.SpillAt(creamPie.Owner, solution, "PuddleSmear", false);
}

EntityManager.QueueDeleteEntity(uid);
}

protected override void CreamedEntity(EntityUid uid, CreamPiedComponent creamPied, ThrowHitByEvent args)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public void SplatCreamPie(EntityUid uid, CreamPieComponent creamPie)
creamPie.Splatted = true;

SplattedCreamPie(uid, creamPie);

EntityManager.QueueDeleteEntity(uid);
}

protected virtual void SplattedCreamPie(EntityUid uid, CreamPieComponent creamPie) {}
Expand Down

0 comments on commit 7ed6e28

Please sign in to comment.