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 GitHub
parent b6bbb5d1b4
commit c95bf3f94f

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