forked from VoxeLibre/VoxeLibre
Merge pull request 'Fix twisted vines breaking block when growing' (#3037) from fix_tvines_breaking into master
Reviewed-on: MineClone2/MineClone2#3037
This commit is contained in:
commit
588425df73
|
@ -21,8 +21,10 @@ function grow_vines(pos, moreontop ,vine, dir)
|
||||||
n = minetest.get_node(pos)
|
n = minetest.get_node(pos)
|
||||||
if n.name == "air" then
|
if n.name == "air" then
|
||||||
for i=0,math.max(moreontop,1) do
|
for i=0,math.max(moreontop,1) do
|
||||||
|
if minetest.get_node(pos).name == "air" then
|
||||||
minetest.set_node(vector.offset(pos,0,i*dir,0),{name=vine})
|
minetest.set_node(vector.offset(pos,0,i*dir,0),{name=vine})
|
||||||
end
|
end
|
||||||
|
end
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
until n.name ~= "air" and n.name ~= vine
|
until n.name ~= "air" and n.name ~= vine
|
||||||
|
|
Loading…
Reference in New Issue