]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix storage open sounds playing when they shouldn't (#24752)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Tue, 30 Jan 2024 23:20:00 +0000 (18:20 -0500)
committerGitHub <noreply@github.com>
Tue, 30 Jan 2024 23:20:00 +0000 (16:20 -0700)
Content.Server/Storage/EntitySystems/StorageSystem.cs

index 035ca5f399a2cd2aa0ba2d9c1ecdea1890251e73..0f5efda74de668458faa30f3383c758d05a8e52d 100644 (file)
@@ -132,7 +132,8 @@ public sealed partial class StorageSystem : SharedStorageSystem
         silent |= TryComp<UseDelayComponent>(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));
         }