Fix in-range-unobstructed error (#12775)
This commit is contained in:
@@ -557,7 +557,8 @@ namespace Content.Shared.Interaction
|
||||
else
|
||||
{
|
||||
originPos = Transform(origin).MapPosition;
|
||||
targetRot = Transform(Transform(other).ParentUid).LocalRotation + otherAngle;
|
||||
var otherParent = Transform(other).ParentUid;
|
||||
targetRot = otherParent.IsValid() ? Transform(otherParent).LocalRotation + otherAngle : otherAngle;
|
||||
}
|
||||
|
||||
// Do a raycast to check if relevant
|
||||
|
||||
Reference in New Issue
Block a user