fix(flows): manuel påkobling starter også traktoren i et flow hvis Start blev afvist (ikke stoppet af spilleren) (v1.57.3.0)
This commit is contained in:
@@ -454,7 +454,8 @@ function ADFlowWagons.onManualAttach(adEnv, vehicle, wagon)
|
||||
local wagonId = wagon ~= nil and ADRunsController.getVehicleId(wagon) or nil
|
||||
local remembered = (run.wagons or {})[tractorId]
|
||||
local module = vehicle.ad ~= nil and vehicle.ad.stateModule or nil
|
||||
if not ADFlowWagons.startAfterManualAttach({flowRunning = not run.stopped and ADRunsController.runningRuns[run.id] == true,
|
||||
-- ikke stoppet af spilleren = gælder også et flow hvis Start blev afvist ('ingen vogn') — det er derfor han henter vognen
|
||||
if not ADFlowWagons.startAfterManualAttach({flowRunning = not run.stopped,
|
||||
ownWagon = wagonId ~= nil and (remembered == nil or remembered == wagonId),
|
||||
adActive = module ~= nil and module:isActive()}) then return end
|
||||
fetchRetries[vehicle], waiting[vehicle] = nil, nil
|
||||
|
||||
Reference in New Issue
Block a user