Fixed bug which jammed servers

This commit is contained in:
Bas 2012-07-28 13:18:27 +02:00
parent 242360ac74
commit cb65eb589a

@ -237,19 +237,13 @@ minetest.register_craftitem("vines:vines", {
minetest.register_on_dignode(function (pos, node, player)
if node.name == 'vines:rope_block' then
local p = {x=pos.x, y=pos.y-1, z=pos.z}
local n = minetest.env:get_node(p)
print(n.name)
if n.name == 'vines:rope' then
while n.name ~= 'vines:rope_end' do
minetest.env:remove_node(p)
p = {x=p.x, y=p.y-1, z=p.z}
n = minetest.env:get_node(p)
end
end
while n.name == 'vines:rope' do
minetest.env:remove_node(p)
p = {x=p.x, y=p.y-1, z=p.z}
n = minetest.env:get_node(p)
end
if n.name == 'vines:rope_end' then
minetest.env:remove_node(p)
end