diff --git a/Content.Server/Sound/EmitSoundSystem.cs b/Content.Server/Sound/EmitSoundSystem.cs index 42207d9eae..240ee28f3d 100644 --- a/Content.Server/Sound/EmitSoundSystem.cs +++ b/Content.Server/Sound/EmitSoundSystem.cs @@ -50,9 +50,9 @@ namespace Content.Server.Sound private static void TryEmitSound(BaseEmitSoundComponent component) { - if (component.Sound.TryGetSound(out var soundName)) + if (!string.IsNullOrWhiteSpace(component.Sound.GetSound())) { - SoundSystem.Play(Filter.Pvs(component.Owner), soundName, component.Owner, AudioHelpers.WithVariation(component.PitchVariation).WithVolume(-2f)); + SoundSystem.Play(Filter.Pvs(component.Owner), component.Sound.GetSound(), component.Owner, AudioHelpers.WithVariation(component.PitchVariation).WithVolume(-2f)); } else {