1
0
Fork 0

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