1
0
Fork 0

Merge pull request 'Fix twisted vines breaking block when growing' (#3037) from fix_tvines_breaking into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3037
csm-enabled
cora 2022-11-29 11:23:21 +00:00
commit 588425df73
1 changed files with 3 additions and 1 deletions

View File

@ -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