mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-24 18:32:25 +01:00
Gourd API: Only set facedir of gourd if needed
This commit is contained in:
parent
e8056edde0
commit
b42fdbf385
@ -224,7 +224,11 @@ function mcl_farming:add_gourd(full_unconnected_stem, connected_stem_basename, s
|
|||||||
minetest.set_node(stempos, {name=connected_stem_names[4]})
|
minetest.set_node(stempos, {name=connected_stem_names[4]})
|
||||||
p2 = 0
|
p2 = 0
|
||||||
end
|
end
|
||||||
minetest.add_node(blockpos, {name=gourd_itemstring, param2=p2})
|
if gourd_def.paramtype2 == "facedir" then
|
||||||
|
minetest.add_node(blockpos, {name=gourd_itemstring, param2=p2})
|
||||||
|
else
|
||||||
|
minetest.add_node(blockpos, {name=gourd_itemstring})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user