#4219 pr tweak
(cherry picked from commit 00b80cb1df2434259ab5df45188e176be57603af)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user