mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-19 12:45:11 +00:00
Gourd API: Only set facedir of gourd if needed
This commit is contained in:
parent
e8056edde0
commit
b42fdbf385
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue