From 6b258b416de26bcc0a63ba9120a4e86d75d0d129 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 10 Feb 2017 18:57:32 +0100 Subject: [PATCH] Fix pumpkin seed placement issues --- mods/mcl_farming/pumpkin.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mods/mcl_farming/pumpkin.lua b/mods/mcl_farming/pumpkin.lua index bff9b51abe..291ef9c4cb 100644 --- a/mods/mcl_farming/pumpkin.lua +++ b/mods/mcl_farming/pumpkin.lua @@ -4,13 +4,7 @@ minetest.register_craftitem("mcl_farming:pumpkin_seeds", { inventory_image = "farming_pumpkin_seed.png", groups = { craftitem=1 }, on_place = function(itemstack, placer, pointed_thing) - local above = minetest.get_node(pointed_thing.above) - if above.name == "air" then - above.name = "mcl_farming:pumpkin_1" - minetest.set_node(pointed_thing.above, above) - itemstack:take_item(1) - return itemstack - end + return mcl_farming:place_seed(itemstack, placer, pointed_thing, "mcl_farming:pumpkin_1") end })