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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user