Skip to content

Commit ecdc3bd

Browse files
author
Peter Vaiko
committed
fix: unloader uses harvester course offset
This really shouldn't be that difficult... #599
1 parent 6eb5dcc commit ecdc3bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/ai/strategies/AIDriveStrategyUnloadCombine.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ end
10961096

10971097
---@return number offset X for the course to follow the combine, this is the pipe offset and the combine courser offset
10981098
function AIDriveStrategyUnloadCombine:getFollowingCourseOffset(combine)
1099-
local pipeOffset = self:getPipeOffset()
1099+
local pipeOffset = self:getPipeOffset(combine)
11001100
local courseOffset = combine:getCpDriveStrategy():getFieldworkCourse():getOffset()
11011101
return -pipeOffset + courseOffset
11021102
end

0 commit comments

Comments
 (0)