mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Fix twisted vines breaking block when growing
This commit is contained in:
parent
85e7de6c14
commit
25d0f2b0c4
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@ function grow_vines(pos, moreontop ,vine, dir)
|
|||
n = minetest.get_node(pos)
|
||||
if n.name == "air" then
|
||||
for i=0,math.max(moreontop,1) do
|
||||
minetest.set_node(vector.offset(pos,0,i*dir,0),{name=vine})
|
||||
if minetest.get_node(pos).name == "air" then
|
||||
minetest.set_node(vector.offset(pos,0,i*dir,0),{name=vine})
|
||||
end
|
||||
end
|
||||
break
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue