diff --git a/Content.Server/Construction/Completions/PlaySound.cs b/Content.Server/Construction/Completions/PlaySound.cs index 50b705ddfe..75e0153922 100644 --- a/Content.Server/Construction/Completions/PlaySound.cs +++ b/Content.Server/Construction/Completions/PlaySound.cs @@ -22,8 +22,9 @@ namespace Content.Server.Construction.Completions public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { var scale = (float) IoCManager.Resolve().NextGaussian(1, Variation); - entityManager.EntitySysManager.GetEntitySystem() - .PlayPvs(Sound, uid, AudioParams.WithPitchScale(scale)); + if (entityManager.TryGetComponent(uid, out var xform)) + entityManager.EntitySysManager.GetEntitySystem() + .PlayPvs(Sound, xform.Coordinates, AudioParams.WithPitchScale(scale)); } } }