Skip to content

Commit ff74149

Browse files
authored
Fix fuel save bypass in MotorController.lua
MotorController:update() was returning prematurely when Fuel Save was disabled, bypassing all additional MotorController logic
1 parent 7d5ea61 commit ff74149

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/ai/controllers/MotorController.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ function MotorController:update()
3131
self.vehicle:raiseAIEvent('onAIFieldWorkerContinue', 'onAIImplementContinue')
3232
end
3333
self.timerSet = false
34-
return
3534
end
3635
if self:isFuelSaveDisabled() or self.driveStrategy:getMaxSpeed() >
3736
self.speedThreshold then
@@ -132,4 +131,4 @@ end
132131

133132
function MotorController:getIsStarted()
134133
return self.vehicle:getMotorState() ~= MotorState.OFF
135-
end
134+
end

0 commit comments

Comments
 (0)