File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,16 +25,8 @@ function MotorController:update()
2525 if not self .isValid then
2626 return
2727 end
28- if not self .settings .fuelSave :getValue () then
29- if not self :getIsStarted () then
30- self :startMotor ()
31- self .vehicle :raiseAIEvent (' onAIFieldWorkerContinue' , ' onAIImplementContinue' )
32- end
33- self .timerSet = false
34- return
35- end
3628 if self :isFuelSaveDisabled () or self .driveStrategy :getMaxSpeed () >
37- self .speedThreshold then
29+ self .speedThreshold or not self . settings . fuelSave : getValue () then
3830 if not self :getIsStarted () then
3931 self :startMotor ()
4032 self .vehicle :raiseAIEvent (" onAIFieldWorkerContinue" , " onAIImplementContinue" )
@@ -85,7 +77,7 @@ function MotorController:getDriveData()
8577 end
8678 if g_Courseplay .globalSettings .waitForRefueling :getValue () and
8779 self :isFuelLow (self .fuelThresholdSetting :getValue ()) then
88-
80+
8981 maxSpeed = 0
9082 end
9183
132124
133125function MotorController :getIsStarted ()
134126 return self .vehicle :getMotorState () ~= MotorState .OFF
135- end
127+ end
You can’t perform that action at this time.
0 commit comments