We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6486cdf commit 4252fdfCopy full SHA for 4252fdf
Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs
@@ -41,7 +41,9 @@ public override void Initialize()
41
42
protected override void SplattedCreamPie(EntityUid uid, CreamPieComponent creamPie)
43
{
44
- _audio.PlayPvs(_audio.GetSound(creamPie.Sound), uid, AudioParams.Default.WithVariation(0.125f));
+ // The entity is deleted, so play the sound at its position rather than parenting
45
+ var coordinates = Transform(uid).Coordinates;
46
+ _audio.PlayPvs(_audio.GetSound(creamPie.Sound), coordinates, AudioParams.Default.WithVariation(0.125f));
47
48
if (EntityManager.TryGetComponent(uid, out FoodComponent? foodComp))
49
0 commit comments