Replace some sound PlayEntity with PlayPvs (#34317)
This commit is contained in:
@@ -117,7 +117,7 @@ public sealed class PortableGeneratorSystem : SharedPortableGeneratorSystem
|
||||
var clogged = _generator.GetIsClogged(uid);
|
||||
|
||||
var sound = empty ? component.StartSoundEmpty : component.StartSound;
|
||||
_audio.PlayEntity(sound, Filter.Pvs(uid), uid, true);
|
||||
_audio.PlayPvs(sound, uid);
|
||||
|
||||
if (!clogged && !empty && _random.Prob(component.StartChance))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user