diff --git a/Content.Server/Access/Systems/AccessReaderBoardSystem.cs b/Content.Server/Access/Systems/AccessReaderBoardSystem.cs index ce27d5b538e441..be88b999668256 100644 --- a/Content.Server/Access/Systems/AccessReaderBoardSystem.cs +++ b/Content.Server/Access/Systems/AccessReaderBoardSystem.cs @@ -19,12 +19,19 @@ public override void Initialize() private void OnUseInHand(EntityUid uid, AccessStorageComponent component, UseInHandEvent args) { - string[] access = { "" }; + List accessList = new List(); if (component.AccessLists.Count > 0) - access = component.AccessLists[0].ToArray(); - - AccessStorageBoundUserInterfaceState newState = new(access, component.DenyTags.ToArray()); + { + foreach (HashSet hashSet in component.AccessLists) + { + foreach (string hash in hashSet.ToArray()) + { + accessList.Add(hash); + } + } + } + AccessStorageBoundUserInterfaceState newState = new(accessList.ToArray(), component.DenyTags.ToArray()); _userInterfaceSystem.TrySetUiState(uid, AccessStorageUiKey.Key, newState); } }