Fix crafts advanced constraints in workflow

Fixes #1247
develop
Pauli 2018-07-04 19:07:12 +03:00
parent ae5a1fad84
commit 57dd9e944e
2 changed files with 9 additions and 1 deletions

@ -39,6 +39,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
## Fixes ## Fixes
- `fix/dead-units`: fixed script trying to use missing isDiplomat function - `fix/dead-units`: fixed script trying to use missing isDiplomat function
- `gui/workflow`: fixed advanced constraint menu for crafts
## Misc Improvements ## Misc Improvements
- Console: - Console:

@ -185,7 +185,14 @@ end
function job_outputs.MakeCrafts(callback, job) function job_outputs.MakeCrafts(callback, job)
local mat_type, mat_index, mat_mask = guess_job_material(job) local mat_type, mat_index, mat_mask = guess_job_material(job)
callback{ is_craft = true, mat_type = mat_type, mat_index = mat_index, mat_mask = mat_mask } callback{
is_craft = true,
item_type = -1,
item_subtype = -1,
mat_type = mat_type,
mat_index = mat_index,
mat_mask = mat_mask
}
end end
local plant_products = { local plant_products = {