From: Fildrance Date: Wed, 1 Oct 2025 11:43:21 +0000 (+0300) Subject: fix: scan for ShowAccessReaderSettingsComponent on examiner and not on airlock (... X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=c95bf3f94fb77e7829dbf00b9a7b1c2b373eda76;p=space-station-14.git fix: scan for ShowAccessReaderSettingsComponent on examiner and not on airlock (#40626) Co-authored-by: pa.pecherskij --- diff --git a/Content.Shared/Access/Systems/AccessReaderSystem.cs b/Content.Shared/Access/Systems/AccessReaderSystem.cs index 56aa0550cf..801bfd4b1d 100644 --- a/Content.Shared/Access/Systems/AccessReaderSystem.cs +++ b/Content.Shared/Access/Systems/AccessReaderSystem.cs @@ -70,9 +70,10 @@ public sealed class AccessReaderSystem : EntitySystem } } + var examiner = args.Examiner; var canSeeAccessModification = accessHasBeenModified && - (HasComp(ent) || - _inventorySystem.TryGetInventoryEntity(args.Examiner, out _)); + (HasComp(examiner) || + _inventorySystem.TryGetInventoryEntity(examiner, out _)); if (canSeeAccessModification) {