fix storage open sounds playing when they shouldn't (#24752)

This commit is contained in:
Nemanja
2024-01-30 18:20:00 -05:00
committed by GitHub
parent 58223b36a5
commit 724312bdf5

View File

@@ -132,6 +132,7 @@ public sealed partial class StorageSystem : SharedStorageSystem
silent |= TryComp<UseDelayComponent>(uid, out var useDelay) && _useDelay.IsDelayed((uid, useDelay));
if (!silent)
{
if (!storageComp.IsUiOpen)
_audio.PlayPvs(storageComp.StorageOpenSound, uid);
if (useDelay != null)
_useDelay.TryResetDelay((uid, useDelay));