feat: slagteklare dyr køres til dyrehandleren (pr. stald, lånt traktor + kreaturvogn)
This commit is contained in:
@@ -2026,6 +2026,10 @@ function ADSmartPickup:update(dt)
|
||||
local okLock, errLock = pcall(ADTriggerLock.tick, getAutoDriveEnv(), dt)
|
||||
if not okLock then Logging.warning(ADSmartPickup.LOG_PREFIX .. "trigger-lås fejlede: %s", tostring(errLock)) end
|
||||
end
|
||||
if ADLivestock ~= nil and ADLivestock.tick ~= nil then
|
||||
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 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