forked from VoxeLibre/VoxeLibre
Fix insta-digging crash when punching stairs.
This commit is contained in:
parent
bbd2ac904d
commit
6a0bcf9881
|
@ -213,7 +213,7 @@ minetest.register_on_punchnode(function(pos, node, puncher, pointed_thing)
|
||||||
if pointed_thing.type ~= "node" then return end
|
if pointed_thing.type ~= "node" then return end
|
||||||
local def = minetest.registered_nodes[node.name]
|
local def = minetest.registered_nodes[node.name]
|
||||||
if def then
|
if def then
|
||||||
minetest.node_dig(pos,def,puncher)
|
minetest.node_dig(pos,node,puncher)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue