[maptools] update

This commit is contained in:
elite 2017-07-10 19:59:14 -04:00
parent 1d8c419ae0
commit c64a1e0789

View File

@ -19,9 +19,12 @@ local function kill_node(pos, node, puncher)
local add_node = puncher:get_inventory():add_item("main", node_drops[i]) local add_node = puncher:get_inventory():add_item("main", node_drops[i])
if add_node then minetest.add_item(pos, add_node) end if add_node then minetest.add_item(pos, add_node) end
end end
minetest.remove_node(pos)
nodeupdate(pos)
end end
end end
minetest.register_on_punchnode(function(pos, node, puncher) minetest.register_on_punchnode(function(pos, node, puncher)
kill_node(pos, node, puncher) kill_node(pos, node, puncher)
end) end)