feat: marker har Til/Fra og er Fra som standard; Stop slår marken fra (1.62.200)
This commit is contained in:
@@ -55,8 +55,8 @@ function ADChainRun.switchFields(data, actions)
|
||||
for _, action in ipairs(actions or {}) do
|
||||
if switched >= ADChain.MAX_FIELD_SWITCHES then break end
|
||||
local field = fieldById(data.fields, action.fieldId)
|
||||
-- brugerens egen målafgrøde røres aldrig (dobbelttjek oven i ADCropPlan)
|
||||
if action.mode == "auto" and field ~= nil and field.targetSource ~= "user" then
|
||||
-- brugerens egen målafgrøde røres aldrig (dobbelttjek oven i ADCropPlan); en mark slået fra heller ikke
|
||||
if action.mode == "auto" and field ~= nil and field.targetSource ~= "user" and field.enabled ~= false then
|
||||
local ok, err = pcall(ADFieldJobs.setTarget, action.fieldId, action.to, "chain", action.product)
|
||||
if ok then
|
||||
switched = switched + 1
|
||||
|
||||
Reference in New Issue
Block a user