feat: marker har Til/Fra og er Fra som standard; Stop slår marken fra (1.62.200)
This commit is contained in:
@@ -95,7 +95,8 @@ function ADCropPlan.choose(shortages, fields, usedFruits, yields, prices, dismis
|
||||
for _, candidate in ipairs(candidates) do
|
||||
if remaining <= 0 then break end
|
||||
local field = candidate.field
|
||||
local auto = field.chainFree == true and field.targetSource ~= "user"
|
||||
-- en mark slået fra i marklisten skiftes aldrig selv — den foreslås i stedet (godkend = slå til)
|
||||
local auto = field.chainFree == true and field.targetSource ~= "user" and field.enabled ~= false
|
||||
if auto or suggested < ADCropPlan.MAX_SUGGEST_PER_FRUIT then
|
||||
table.insert(actions, {fieldId = field.id, from = ADCropPlan.plannedFruit(field) or "", to = shortage.fruit,
|
||||
product = shortage.product, hectares = field.areaHa or 0, reason = shortage.key or shortage.fruit,
|
||||
|
||||
Reference in New Issue
Block a user