1
0
Fork 0

Use dig_node instead of remove in creative dig

This commit is contained in:
cora 2022-10-17 12:37:22 +02:00
parent 9eb1e8373e
commit e6aeb9ffba
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ minetest.register_on_punchnode(function(pos, node, puncher, pointed_thing)
local def = minetest.registered_nodes[node.name] local def = minetest.registered_nodes[node.name]
if def then if def then
if def.on_destruct then def.on_destruct(pos) end if def.on_destruct then def.on_destruct(pos) end
minetest.remove_node(pos) minetest.dig_node(pos)
return true return true
end end
end) end)