Differences From
Artifact [5b6d6366ce]:
78 78 ::collcheck:: do
79 79 -- if no collision then return end
80 80 -- local nname = minetest.get_node(pos).name
81 81 -- if nname == 'air' or minetest.registered_nodes[nname].walkable ~= true then return
82 82 -- elseif nname == 'ignore' then goto destroy end
83 83 -- else fall through to explode
84 84 if collision then -- since 5.3 only!!
85 - print('collision detected!',dump(collision))
86 85 if collision.collides == false then return end
87 86 if #collision.collisions > 0 then
88 87 local col = collision.collisions[1]
89 88 if col.node_pos then
90 89 pos = col.node_pos
91 90 elseif col.object then
92 91 pos = col.object:get_pos()