diff --git a/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs b/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs index 9f83457818..e6a1d17697 100644 --- a/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs +++ b/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs @@ -1415,11 +1415,11 @@ public abstract class SharedStorageSystem : EntitySystem return; // Gets everyone looking at the UI - foreach (var actor in _ui.GetActors(uid, StorageComponent.StorageUiKey.Key)) + foreach (var actor in _ui.GetActors(uid, StorageComponent.StorageUiKey.Key).ToList()) { if (_admin.HasAdminFlag(actor, AdminFlags.Admin)) continue; - + // And closes it unless they're an admin _ui.CloseUi(uid, StorageComponent.StorageUiKey.Key, actor); }