(cherry picked from commit 00b80cb1df2434259ab5df45188e176be57603af)
This commit is contained in:
Galactic Chimp
2021-07-12 13:43:54 +02:00
parent 26f9a60858
commit aff9d99dc7

View File

@@ -50,9 +50,9 @@ namespace Content.Server.Sound
private static void TryEmitSound(BaseEmitSoundComponent component) 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 else
{ {