feat: fuldautomatisk saltning af gårde og AD-veje i sne
This commit is contained in:
@@ -2093,6 +2093,10 @@ function ADSmartPickup:update(dt)
|
||||
local okLive, errLive = pcall(ADLivestock.tick, getAutoDriveEnv(), dt)
|
||||
if not okLive then Logging.warning(ADSmartPickup.LOG_PREFIX .. "dyretransport fejlede: %s", tostring(errLive)) end
|
||||
end
|
||||
if ADSaltRoute ~= nil and ADSaltRoute.tick ~= nil then
|
||||
local okSalt, errSalt = pcall(ADSaltRoute.tick, getAutoDriveEnv(), dt)
|
||||
if not okSalt then Logging.warning(ADSmartPickup.LOG_PREFIX .. "saltrute fejlede: %s", tostring(errSalt)) end
|
||||
end
|
||||
if ADStrayUnload ~= nil then
|
||||
local okStray, errStray = pcall(ADStrayUnload.tick, getAutoDriveEnv(), dt)
|
||||
if not okStray then Logging.warning(ADSmartPickup.LOG_PREFIX .. "fuldt mål fejlede: %s", tostring(errStray)) end
|
||||
|
||||
Reference in New Issue
Block a user