hands ECS (#7081)
This commit is contained in:
@@ -140,8 +140,8 @@ namespace Content.Server.Access.Systems
|
||||
{
|
||||
// check held item?
|
||||
if (EntityManager.TryGetComponent(uid, out SharedHandsComponent? hands) &&
|
||||
hands.TryGetActiveHeldEntity(out var heldItem) &&
|
||||
TryGetIdCard(heldItem.Value, out idCard))
|
||||
hands.ActiveHandEntity is EntityUid heldItem &&
|
||||
TryGetIdCard(heldItem, out idCard))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user