diff --git a/docs/Lua API.rst b/docs/Lua API.rst index e017e0a8c..24887cd58 100644 --- a/docs/Lua API.rst +++ b/docs/Lua API.rst @@ -1132,7 +1132,7 @@ Job module Does basic sanity checks to verify if the suggested item type matches the flags in the job item. -* ``dfhack.job.isSuitableMaterial(job_item, mat_type, mat_index)`` +* ``dfhack.job.isSuitableMaterial(job_item, mat_type, mat_index, item_type)`` Likewise, if replacing material. diff --git a/docs/changelog.txt b/docs/changelog.txt index 79179ce5e..ac2e6b55f 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -50,6 +50,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: ## API - `buildingplan`: added Lua interface API +- `job-module`: add item type param to dfhack.job.isSuitableMaterial() so the non_economic flag can be properly handled (it was being matched for all item types instead of just boulders) # 0.47.04-r3