Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan-S committed Jun 3, 2019
2 parents 51a1d90 + b005c36 commit b35129b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions FS19_AutoDrive/scripts/AutoDriveTrailerUtil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ function AutoDrive:handleTrailers(vehicle, dt)
for _,trailer in pairs(trailers) do
for _,trigger in pairs(AutoDrive.Triggers.siloTriggers) do
local activate = false;
if trigger.fillableObjects ~= nil then
for __,fillableObject in pairs(trigger.fillableObjects) do
if fillableObject.object == trailer then
activate = true;
end;
end;
end;
if trigger.fillableObjects ~= nil then
for __,fillableObject in pairs(trigger.fillableObjects) do
if fillableObject.object == trailer then
activate = true;
end;
end;
end;
if AutoDrive:getSetting("continueOnEmptySilo") and vehicle.ad.isLoading and vehicle.ad.isPaused and not trigger.isLoading and vehicle.ad.startedLoadingAtTrigger then --trigger must be empty by now. Drive on!
vehicle.ad.isPaused = false;
vehicle.ad.isUnloading = false;
Expand Down Expand Up @@ -262,4 +262,4 @@ function AutoDrive:getTrailersOfImplement(attachedImplement)
end;

return;
end;
end;

0 comments on commit b35129b

Please sign in to comment.