diff --git a/FS19_AutoDrive/scripts/AutoDriveTrailerUtil.lua b/FS19_AutoDrive/scripts/AutoDriveTrailerUtil.lua index eed56f1f..628d041a 100644 --- a/FS19_AutoDrive/scripts/AutoDriveTrailerUtil.lua +++ b/FS19_AutoDrive/scripts/AutoDriveTrailerUtil.lua @@ -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; @@ -262,4 +262,4 @@ function AutoDrive:getTrailersOfImplement(attachedImplement) end; return; -end; \ No newline at end of file +end;