From 6901781b495ec45c75f7aae366a46c112fa34b9a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 14 Mar 2017 22:01:41 +0100 Subject: [PATCH] =?UTF-8?q?Potatoe=20plants=20get=20a=20=E2=80=9C#?= =?UTF-8?q?=E2=80=9D=20shape,=20too?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mods/ITEMS/mcl_dye/init.lua | 4 ++-- mods/ITEMS/mcl_farming/potatoes.lua | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_dye/init.lua b/mods/ITEMS/mcl_dye/init.lua index e7aa1b55bc..8e05d4d52d 100644 --- a/mods/ITEMS/mcl_dye/init.lua +++ b/mods/ITEMS/mcl_dye/init.lua @@ -145,9 +145,9 @@ mcl_dye.apply_bone_meal = function(pointed_thing) elseif string.find(n.name, "mcl_farming:potato_") ~= nil then stage = tonumber(string.sub(n.name, -1)) if stage == 1 then - minetest.add_node(pos, {name="mcl_farming:potato_"..math.random(stage,2)}) + minetest.add_node(pos, {name="mcl_farming:potato_"..math.random(stage,2), param = n.param, param2 = n.param2}) else - minetest.add_node(pos, {name="mcl_farming:potato"}) + minetest.add_node(pos, {name="mcl_farming:potato", param = n.param, param2 = n.param2}) end return true elseif string.find(n.name, "mcl_farming:beetroot_") ~= nil then diff --git a/mods/ITEMS/mcl_farming/potatoes.lua b/mods/ITEMS/mcl_farming/potatoes.lua index cff24538ef..82813c99d7 100644 --- a/mods/ITEMS/mcl_farming/potatoes.lua +++ b/mods/ITEMS/mcl_farming/potatoes.lua @@ -3,6 +3,8 @@ minetest.register_node("mcl_farming:potato_1", { _doc_items_entry_name = "Premature Potato Plant", _doc_items_longdesc = "Potato plants are plants which grow on farmland under sunlight in 3 stages. On hydrated farmland, they grow a bit faster. They can be harvested at any time but will only yield a profit when mature.", paramtype = "light", + paramtype2 = "meshoptions", + place_param2 = 3, walkable = false, drawtype = "plantlike", drop = "mcl_farming:potato_item", @@ -22,6 +24,8 @@ minetest.register_node("mcl_farming:potato_2", { description = "Premature Potato Plant (Second Stage)", _doc_items_create_entry = false, paramtype = "light", + paramtype2 = "meshoptions", + place_param2 = 3, walkable = false, drawtype = "plantlike", drop = "mcl_farming:potato_item", @@ -41,6 +45,8 @@ minetest.register_node("mcl_farming:potato", { description = "Mature Potato Plant", _doc_items_longdesc = "Mature potato plants are ready to be harvested for potatoes. They won't grow any further.", paramtype = "light", + paramtype2 = "meshoptions", + place_param2 = 3, walkable = false, drawtype = "plantlike", tiles = {"farming_potato_3.png"},