feat: marker har Til/Fra og er Fra som standard; Stop slår marken fra (1.62.200)

This commit is contained in:
2026-10-10 17:29:37 +02:00
parent 59923c1bfa
commit 7a3d6184bc
13 changed files with 73 additions and 31 deletions
+2 -2
View File
@@ -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