forked from Mineclonia/Mineclonia
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
|
||||||
|
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,
|
||||||
|
|
Loading…
Reference in New Issue