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