From 3c0d30964315ad9e2cba2c6ade1260d8b35293da Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 26 Mar 2020 20:28:44 +0100 Subject: [PATCH] Improve documentation of minetest.get_node_drops() Also remove the comment saying it could be removed or modified. --- doc/lua_api.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/lua_api.txt b/doc/lua_api.txt index b67f70631..c94af6125 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -4894,9 +4894,11 @@ Item handling given `param2` value. * Returns `nil` if the given `paramtype2` does not contain color information. -* `minetest.get_node_drops(nodename, toolname)` - * Returns list of item names. - * **Note**: This will be removed or modified in a future version. +* `minetest.get_node_drops(node, toolname)` + * Returns list of itemstrings that are dropped by `node` when dug + with `toolname`. + * `node`: node as table or node name + * `toolname`: name of the tool item (can be `nil`) * `minetest.get_craft_result(input)`: returns `output, decremented_input` * `input.method` = `"normal"` or `"cooking"` or `"fuel"` * `input.width` = for example `3` -- 2.25.1