Refactor audio system to send collection IDs over the network (#33610)
This commit is contained in:
committed by
GitHub
parent
1d210b52e0
commit
fabfdd0673
@@ -161,7 +161,7 @@ public sealed class GeigerSystem : SharedGeigerSystem
|
||||
if (!_player.TryGetSessionByEntity(component.User.Value, out var session))
|
||||
return;
|
||||
|
||||
var sound = _audio.GetSound(sounds);
|
||||
var sound = _audio.ResolveSound(sounds);
|
||||
var param = sounds.Params.WithLoop(true).WithVolume(-4f);
|
||||
|
||||
component.Stream = _audio.PlayGlobal(sound, session, param)?.Entity;
|
||||
|
||||
Reference in New Issue
Block a user