From 2a2434dbead6d2814ad502c8eb2ad9b46caac146 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 21 Oct 2022 00:20:52 +1100 Subject: [PATCH] Fix wallmount interactions (#12013) --- Content.Shared/Interaction/SharedInteractionSystem.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Content.Shared/Interaction/SharedInteractionSystem.cs b/Content.Shared/Interaction/SharedInteractionSystem.cs index aebd930d93..701a24dfc7 100644 --- a/Content.Shared/Interaction/SharedInteractionSystem.cs +++ b/Content.Shared/Interaction/SharedInteractionSystem.cs @@ -545,9 +545,11 @@ namespace Content.Shared.Interaction range = (originPos.Position - targetPos.Position).Length; } } + // No fixtures, e.g. wallmounts. else { originPos = Transform(origin).MapPosition; + targetRot = Transform(Transform(other).ParentUid).LocalRotation + otherAngle; } // Do a raycast to check if relevant