From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Fri, 2 Aug 2024 05:44:59 +0000 (+0200) Subject: Fix borgs being unable to state laws or open other UIs without modules (#30299) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2c31e03ee3a5da2f8817eddbccc80005aa122aa0;p=space-station-14.git Fix borgs being unable to state laws or open other UIs without modules (#30299) borg law 2 state laws all day --- diff --git a/Content.Shared/Interaction/SharedInteractionSystem.cs b/Content.Shared/Interaction/SharedInteractionSystem.cs index aca078687a..a57796d87c 100644 --- a/Content.Shared/Interaction/SharedInteractionSystem.cs +++ b/Content.Shared/Interaction/SharedInteractionSystem.cs @@ -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(); }