forked from ThomasMonroe314/ugxrealms
[maptools] update
This commit is contained in:
parent
1d8c419ae0
commit
c64a1e0789
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user