Fix twisted vines breaking block when growing

This commit is contained in:
cora 2022-11-28 11:19:45 +01:00
parent 85e7de6c14
commit 25d0f2b0c4

View File

@ -21,8 +21,10 @@ 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
if minetest.get_node(pos).name == "air" then
minetest.set_node(vector.offset(pos,0,i*dir,0),{name=vine})
end
end
break
end
until n.name ~= "air" and n.name ~= vine