From bf1b610a6210429ca75a38be7c1b8ce5df19827b Mon Sep 17 00:00:00 2001 From: rgoe Date: Thu, 30 Apr 2026 14:38:42 +0200 Subject: [PATCH] Update PathfinderUtil.lua Might fix #1179 - looks like a typo to adding/subtracting the offset --- scripts/pathfinder/PathfinderUtil.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pathfinder/PathfinderUtil.lua b/scripts/pathfinder/PathfinderUtil.lua index ea8736e7..7ee321a0 100644 --- a/scripts/pathfinder/PathfinderUtil.lua +++ b/scripts/pathfinder/PathfinderUtil.lua @@ -68,7 +68,7 @@ function PathfinderUtil.VehicleData:init(vehicle, withImplements, buffer) -- for implements which are not centered on the hitch point, such as bale wrappers in the working position towedImplementSideOffset, _, _ = localToLocal(inputAttacherJoint.node, self.towedImplement.rootNode, 0, 0, 0) dLeft = dLeft - towedImplementSideOffset - dRight = dRight - towedImplementSideOffset + dRight = dRight + towedImplementSideOffset end else self.hitchOffset = self.dRear @@ -749,4 +749,4 @@ end function PathfinderUtil.debug(vehicle, ...) CpUtil.debugVehicle(CpDebug.DBG_PATHFINDER, vehicle, ...) -end \ No newline at end of file +end