using Content.Shared.Hands.Components; using Content.Shared.Whitelist; namespace Content.Shared.Hands.EntitySystems; public abstract partial class SharedHandsSystem { private bool CheckWhitelists(Entity ent, string handId, EntityUid toTest) { if (!TryGetHand(ent, handId, out var hand)) return false; return _entityWhitelist.CheckBoth(toTest, hand.Value.Blacklist, hand.Value.Whitelist); } }