From 724312bdf5888b303309c0b2fab0feb409e4e1a9 Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Tue, 30 Jan 2024 18:20:00 -0500 Subject: [PATCH] fix storage open sounds playing when they shouldn't (#24752) --- Content.Server/Storage/EntitySystems/StorageSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/Storage/EntitySystems/StorageSystem.cs b/Content.Server/Storage/EntitySystems/StorageSystem.cs index 035ca5f399..0f5efda74d 100644 --- a/Content.Server/Storage/EntitySystems/StorageSystem.cs +++ b/Content.Server/Storage/EntitySystems/StorageSystem.cs @@ -132,7 +132,8 @@ public sealed partial class StorageSystem : SharedStorageSystem silent |= TryComp(uid, out var useDelay) && _useDelay.IsDelayed((uid, useDelay)); if (!silent) { - _audio.PlayPvs(storageComp.StorageOpenSound, uid); + if (!storageComp.IsUiOpen) + _audio.PlayPvs(storageComp.StorageOpenSound, uid); if (useDelay != null) _useDelay.TryResetDelay((uid, useDelay)); } -- 2.52.0