diff options
author | Paramat <paramat@users.noreply.github.com> | 2018-10-24 15:03:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-24 15:03:21 +0100 |
commit | 622e2235ee700cf92843d2e99a47e36fd4508cf0 (patch) | |
tree | aea0ff7e6ea2781e2ffabba01b000896d1e6065b /doc | |
parent | ff35bffe186eae942bae74bd6f0b08ae31f344e0 (diff) | |
download | minetest-622e2235ee700cf92843d2e99a47e36fd4508cf0.tar.gz minetest-622e2235ee700cf92843d2e99a47e36fd4508cf0.tar.bz2 minetest-622e2235ee700cf92843d2e99a47e36fd4508cf0.zip |
clear_craft: Return false if recipe not found, don't throw error (#7804)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index b079ac822..53f27e20c 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -3555,7 +3555,7 @@ Call these functions only at load time! ignored. For input use the same recipe table syntax as for `minetest.register_craft(recipe)`. For output specify only the item, without a quantity. - * If no erase candidate could be found, Lua exception will be thrown. + * Returns false if no erase candidate could be found, otherwise returns true. * **Warning**! The type field ("shaped", "cooking" or any other) will be ignored if the recipe contains output. Erasing is then done independently from the crafting method. |