1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Fix minetest.dig_node returning true when node isn't diggable (#10890)

This commit is contained in:
rubenwardy
2021-01-31 18:49:51 +00:00
committed by GitHub
parent d1ec5117d9
commit 6e0e0324a4
3 changed files with 14 additions and 5 deletions

View File

@@ -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