Fix borgs being unable to state laws or open other UIs without modules (#30299)

borg law 2 state laws all day
This commit is contained in:
slarticodefast
2024-08-02 07:44:59 +02:00
committed by GitHub
parent 0b253e94eb
commit 2c31e03ee3

View File

@@ -165,10 +165,7 @@ namespace Content.Shared.Interaction
return;
}
if (!uiComp.RequireHands)
return;
if (!_handsQuery.TryComp(ev.Actor, out var hands) || hands.Hands.Count == 0)
if (uiComp.RequireHands && !_handsQuery.HasComp(ev.Actor))
ev.Cancel();
}