mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
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:
parent
0b253e94eb
commit
2c31e03ee3
1 changed files with 1 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue