From b42fdbf38563fbf830c2d34ac0b99a0192722adb Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 13 Mar 2017 23:13:48 +0100 Subject: [PATCH] Gourd API: Only set facedir of gourd if needed --- mods/ITEMS/mcl_farming/shared_functions.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_farming/shared_functions.lua b/mods/ITEMS/mcl_farming/shared_functions.lua index 2ca7fc1555..23ecf0aac6 100644 --- a/mods/ITEMS/mcl_farming/shared_functions.lua +++ b/mods/ITEMS/mcl_farming/shared_functions.lua @@ -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]}) p2 = 0 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,