Refactor all references to AudioSystem functions now that the old ones are obsolete. (#1081)
Co-authored-by: FL-OZ <anotherscuffed@gmail.com>
This commit is contained in:
@@ -108,7 +108,7 @@ namespace Content.Server.GameObjects.Components.Items.Storage
|
||||
if (CheckAccess(user)) return;
|
||||
|
||||
Locked = false;
|
||||
EntitySystem.Get<AudioSystem>().Play("/Audio/machines/door_lock_off.ogg", Owner, AudioParams.Default.WithVolume(-5));
|
||||
EntitySystem.Get<AudioSystem>().PlayFromEntity("/Audio/machines/door_lock_off.ogg", Owner, AudioParams.Default.WithVolume(-5));
|
||||
}
|
||||
|
||||
private void DoLock(IEntity user)
|
||||
@@ -116,7 +116,7 @@ namespace Content.Server.GameObjects.Components.Items.Storage
|
||||
if (CheckAccess(user)) return;
|
||||
|
||||
Locked = true;
|
||||
EntitySystem.Get<AudioSystem>().Play("/Audio/machines/door_lock_on.ogg", Owner, AudioParams.Default.WithVolume(-5));
|
||||
EntitySystem.Get<AudioSystem>().PlayFromEntity("/Audio/machines/door_lock_on.ogg", Owner, AudioParams.Default.WithVolume(-5));
|
||||
}
|
||||
|
||||
private bool CheckAccess(IEntity user)
|
||||
|
||||
Reference in New Issue
Block a user