mirror of
https://github.com/minetest-mods/ropes.git
synced 2024-11-28 10:23:44 +01:00
Fixed bug which jammed servers
This commit is contained in:
parent
242360ac74
commit
cb65eb589a
8
init.lua
8
init.lua
@ -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
|
||||
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
|
||||
end
|
||||
if n.name == 'vines:rope_end' then
|
||||
minetest.env:remove_node(p)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user