Fix collection modified error when locking storage (#27913)
This commit is contained in:
@@ -1411,7 +1411,7 @@ public abstract class SharedStorageSystem : EntitySystem
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Gets everyone looking at the UI
|
// 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))
|
if (_admin.HasAdminFlag(actor, AdminFlags.Admin))
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user