From 57dd9e944ecad67328c24bd6cf6968070a0a3631 Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 4 Jul 2018 19:07:12 +0300 Subject: [PATCH] Fix crafts advanced constraints in workflow Fixes #1247 --- docs/changelog.txt | 1 + plugins/lua/workflow.lua | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 083697b3b..b568dd809 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -39,6 +39,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: ## Fixes - `fix/dead-units`: fixed script trying to use missing isDiplomat function +- `gui/workflow`: fixed advanced constraint menu for crafts ## Misc Improvements - Console: diff --git a/plugins/lua/workflow.lua b/plugins/lua/workflow.lua index 6c4230a51..9122f290d 100644 --- a/plugins/lua/workflow.lua +++ b/plugins/lua/workflow.lua @@ -185,7 +185,14 @@ end function job_outputs.MakeCrafts(callback, 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 local plant_products = {