]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix borgs being unable to state laws or open other UIs without modules (#30299)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Fri, 2 Aug 2024 05:44:59 +0000 (07:44 +0200)
committerGitHub <noreply@github.com>
Fri, 2 Aug 2024 05:44:59 +0000 (15:44 +1000)
borg law 2 state laws all day

Content.Shared/Interaction/SharedInteractionSystem.cs

index aca078687a845c4691c4e13f27cdd26bc6b696a9..a57796d87c4586eb7bc466c86a005b5fcfdabdcb 100644 (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();
         }