Gourd API: Only set facedir of gourd if needed

This commit is contained in:
Wuzzy 2017-03-13 23:13:48 +01:00
parent e8056edde0
commit b42fdbf385
1 changed files with 5 additions and 1 deletions

View File

@ -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
if gourd_def.paramtype2 == "facedir" then
minetest.add_node(blockpos, {name=gourd_itemstring, param2=p2}) minetest.add_node(blockpos, {name=gourd_itemstring, param2=p2})
else
minetest.add_node(blockpos, {name=gourd_itemstring})
end
end end
end end
end, end,