]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix: scan for ShowAccessReaderSettingsComponent on examiner and not on airlock (...
authorFildrance <fildrance@gmail.com>
Wed, 1 Oct 2025 11:43:21 +0000 (14:43 +0300)
committerGitHub <noreply@github.com>
Wed, 1 Oct 2025 11:43:21 +0000 (11:43 +0000)
Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
Content.Shared/Access/Systems/AccessReaderSystem.cs

index 56aa0550cff077c7c6fa50da263d6012bb5b3d85..801bfd4b1ddbc7a8a85b30c6e954f474db8c5472 100644 (file)
@@ -70,9 +70,10 @@ public sealed class AccessReaderSystem : EntitySystem
             }
         }
 
+        var examiner = args.Examiner;
         var canSeeAccessModification = accessHasBeenModified &&
-            (HasComp<ShowAccessReaderSettingsComponent>(ent) ||
-            _inventorySystem.TryGetInventoryEntity<ShowAccessReaderSettingsComponent>(args.Examiner, out _));
+                                       (HasComp<ShowAccessReaderSettingsComponent>(examiner) ||
+                                        _inventorySystem.TryGetInventoryEntity<ShowAccessReaderSettingsComponent>(examiner, out _));
 
         if (canSeeAccessModification)
         {