From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Tue, 30 Jan 2024 23:20:00 +0000 (-0500) Subject: fix storage open sounds playing when they shouldn't (#24752) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=724312bdf5888b303309c0b2fab0feb409e4e1a9;p=space-station-14.git fix storage open sounds playing when they shouldn't (#24752) --- 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)); }