Skip to content

Commit ff323a0

Browse files
authored
Merge pull request #20 from polosubtil/polosubtil-Rate-control
Update SprayerSectionControl.lua
2 parents 2c424fd + adba55b commit ff323a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SprayerSectionControl.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ end
450450
function SprayerSectionControl:getSprayerUsage(superFunc, fillType, dt)
451451
local origUsage = superFunc(self, fillType, dt)
452452
if self.spec_ssc.isSSCReady then
453-
return origUsage * self:getActiveSprayerSectionsWidth() / self:getSprayerFullWidth()
453+
return origUsage * self:getLastSpeed() / self.speedLimit * self:getActiveSprayerSectionsWidth() / self:getSprayerFullWidth()
454454
else
455455
return origUsage
456456
end
@@ -549,4 +549,4 @@ function SprayerSectionControl.getIsAreaOwned(farmId, sX, sZ, wX, wZ, hX, hZ)
549549
return true
550550
end
551551
return false
552-
end
552+
end

0 commit comments

Comments
 (0)