mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 20:41:11 +01:00
Merge pull request 'Use dig_node instead of remove in creative dig' (#2807) from fix_creative_dig into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2807
This commit is contained in:
commit
dda85ea141
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue