From a17842bbabbba726d962c41cb8d81fc7837a1bde Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Sun, 10 Oct 2021 17:08:15 -0400 Subject: [PATCH] patch https://github.com/minetest-mods/areas/issues/54 --- mods/fl_agriculture/crops/carrot.lua | 2 +- mods/fl_agriculture/crops/potato.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/fl_agriculture/crops/carrot.lua b/mods/fl_agriculture/crops/carrot.lua index 7573930..56150b8 100644 --- a/mods/fl_agriculture/crops/carrot.lua +++ b/mods/fl_agriculture/crops/carrot.lua @@ -12,7 +12,7 @@ minetest.register_craftitem("fl_agriculture:carrot", { if not minetest.registered_nodes[anode.name] then return end if minetest.get_item_group(node.name, "plantable") ~= 1 then return end if minetest.registered_nodes[anode.name].drawtype ~= "airlike" then return end - minetest.place_node({x=pos.x, y=pos.y+1,z=pos.z}, {name = "fl_agriculture:carrot_1"}) + minetest.set_node({x=pos.x, y=pos.y+1,z=pos.z}, {name = "fl_agriculture:carrot_1", param2 = 3}) itemstack:take_item() return itemstack end, diff --git a/mods/fl_agriculture/crops/potato.lua b/mods/fl_agriculture/crops/potato.lua index b85fc69..1f88731 100644 --- a/mods/fl_agriculture/crops/potato.lua +++ b/mods/fl_agriculture/crops/potato.lua @@ -12,7 +12,7 @@ minetest.register_craftitem("fl_agriculture:potato", { if not minetest.registered_nodes[anode.name] then return end if minetest.get_item_group(node.name, "plantable") ~= 1 then return end if minetest.registered_nodes[anode.name].drawtype ~= "airlike" then return end - minetest.place_node({x=pos.x, y=pos.y+1,z=pos.z}, {name = "fl_agriculture:potato_1"}) + minetest.set_node({x=pos.x, y=pos.y+1,z=pos.z}, {name = "fl_agriculture:potato_1", param2 = 3}) itemstack:take_item() return itemstack end,