fix storage open sounds playing when they shouldn't (#24752)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user