mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Fix minetest.dig_node returning true when node isn't diggable (#10890)
This commit is contained in:
parent
d1ec5117d9
commit
6e0e0324a4
3 changed files with 14 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue