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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user