fix: høster med anden afgrøde i tanken vises som 'tøm den' i stedet for 'ingen kan' (1.62.350)

This commit is contained in:
2026-10-19 00:21:01 +02:00
parent 9863e311eb
commit f832652dd4
9 changed files with 47 additions and 7 deletions
+2 -1
View File
@@ -80,7 +80,8 @@ local function collect()
local env = ADFieldJobs.environment ~= nil and ADFieldJobs.environment() or nil
if target ~= nil and target ~= "" and env ~= nil and env.plantable ~= nil and not env.plantable(target) then waitFruit = target end
end
local waitMachine = not active and reason ~= nil and (reason.key == "spu_field_reason_allBusy" or reason.key == "spu_field_reason_cannotDo")
local waitMachine = not active and reason ~= nil and (reason.key == "spu_field_reason_allBusy" or reason.key == "spu_field_reason_cannotDo"
or reason.key == "spu_field_reason_tankBlocked")
table.insert(s.working, {fieldId = info.id, stage = field.stage, active = active, waitFruit = waitFruit, waitMachine = waitMachine})
if reason ~= nil and reason.key == "spu_field_reason_noRig" and reason.role ~= nil then
if missingByRole[reason.role] == nil then