Skip to content

Commit 9dfc680

Browse files
authored
Merge pull request #281 from Courseplay/issue-133
Fix for cotton harvesters #133
2 parents 74336a1 + 7e6a2a8 commit 9dfc680

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

scripts/ai/controllers/BalerController.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ function BalerController:update()
4545
not self.implement:getConsumableIsAvailable(Baler.CONSUMABLE_TYPE_NAME_SQUARE) then
4646
self.vehicle:stopCurrentAIJob(AIMessageErrorOutOfFill.new())
4747
end
48+
if self.implement:getIsAIImplementInLine() and
49+
not self.implement:getIsTurnedOn() and
50+
self.implement:getCanBeTurnedOn() then
51+
-- Cotton harvester are not restarted after unload, so we do it here ...
52+
self.implement:aiImplementStartLine()
53+
end
4854
end
4955

5056
function BalerController:handleBaler()

0 commit comments

Comments
 (0)