1
0
Fork 0

Merge pull request 'Fix insta-digging crash when punching stairs.' (#2926) from stairs_dig_fix into master

Reviewed-on: MineClone2/MineClone2#2926
Reviewed-by: cora <cora@noreply.git.minetest.land>
This commit is contained in:
cora 2022-11-09 13:55:15 +00:00
commit 470d7dbe39
1 changed files with 1 additions and 1 deletions

View File

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