fix: scan for ShowAccessReaderSettingsComponent on examiner and not on airlock (#40626)

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
This commit is contained in:
Fildrance 2025-10-01 14:43:21 +03:00 committed by Vanessa
parent 49377ddc2a
commit 231d2f6892
1 changed files with 3 additions and 2 deletions

View 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)
{