summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2021-01-31 18:49:51 +0000
committerGitHub <noreply@github.com>2021-01-31 18:49:51 +0000
commit6e0e0324a48130376ab3c9fef03b84ee25608242 (patch)
tree2ca83874980f8ade05401b828477fb0d03867886 /doc
parentd1ec5117d9095c75aca26a98690e4fcc5385e98c (diff)
downloadminetest-6e0e0324a48130376ab3c9fef03b84ee25608242.tar.gz
minetest-6e0e0324a48130376ab3c9fef03b84ee25608242.tar.bz2
minetest-6e0e0324a48130376ab3c9fef03b84ee25608242.zip
Fix minetest.dig_node returning true when node isn't diggable (#10890)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 8156f785a..df9e3f8b0 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -7628,6 +7628,8 @@ Used by `minetest.register_node`.
on_dig = function(pos, node, digger),
-- default: minetest.node_dig
-- By default checks privileges, wears out tool and removes node.
+ -- return true if the node was dug successfully, false otherwise.
+ -- Deprecated: returning nil is the same as returning true.
on_timer = function(pos, elapsed),
-- default: nil