feat(kæde): kæden kører — skifter frie marker, tænder mellemled, opretter flows
This commit is contained in:
@@ -1309,6 +1309,12 @@ function ADSmartPickup:update(dt)
|
||||
Logging.warning(ADSmartPickup.LOG_PREFIX .. "marksilo-flow fejlede: %s", tostring(errSilos))
|
||||
end
|
||||
end
|
||||
if ADChain ~= nil then
|
||||
local okChain, errChain = pcall(ADChain.tick, getAutoDriveEnv(), dt)
|
||||
if not okChain then
|
||||
Logging.warning(ADSmartPickup.LOG_PREFIX .. "kæde fejlede: %s", tostring(errChain))
|
||||
end
|
||||
end
|
||||
if ADFlowWagons ~= nil then
|
||||
local okFlow, errFlow = pcall(ADFlowWagons.tick, getAutoDriveEnv(), dt)
|
||||
if not okFlow then Logging.warning(ADSmartPickup.LOG_PREFIX .. "flow-vogne fejlede: %s", tostring(errFlow)) end
|
||||
|
||||
Reference in New Issue
Block a user