removed TryGetSound + made some SoundSpecifier datafields required
This commit is contained in:
@@ -92,8 +92,7 @@ namespace Content.Server.Flash
|
||||
});
|
||||
}
|
||||
|
||||
if(comp.Sound.TryGetSound(out var sound))
|
||||
SoundSystem.Play(Filter.Pvs(comp.Owner), sound, comp.Owner.Transform.Coordinates, AudioParams.Default);
|
||||
SoundSystem.Play(Filter.Pvs(comp.Owner), comp.Sound.GetSound(), comp.Owner.Transform.Coordinates, AudioParams.Default);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user