mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 16:17:27 +00:00
Unrevert audio (#21330)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
This commit is contained in:
committed by
Debug
co-authored by
Pieter-Jan Briers
parent
1f69429ab5
commit
b1ee2d48ff
@@ -5,6 +5,7 @@ using Content.Shared.Database;
|
||||
using Content.Shared.Hands.EntitySystems;
|
||||
using Content.Shared.Interaction.Events;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Random;
|
||||
@@ -18,6 +19,7 @@ namespace Content.Server.Storage.EntitySystems
|
||||
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
|
||||
[Dependency] private readonly SharedHandsSystem _hands = default!;
|
||||
[Dependency] private readonly PricingSystem _pricing = default!;
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -79,7 +81,9 @@ namespace Content.Server.Storage.EntitySystems
|
||||
}
|
||||
|
||||
if (component.Sound != null)
|
||||
SoundSystem.Play(component.Sound.GetSound(), Filter.Pvs(uid), uid);
|
||||
{
|
||||
_audio.PlayPvs(component.Sound, uid);
|
||||
}
|
||||
|
||||
component.Uses--;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user