From d0b934f19d16193ef94ccaa0ada011e91b55df50 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 20 Mar 2017 18:51:40 +0100 Subject: [PATCH] Sunlight propagates through beetroot/potato crop --- mods/ITEMS/mcl_farming/beetroot.lua | 4 ++++ mods/ITEMS/mcl_farming/potatoes.lua | 3 +++ 2 files changed, 7 insertions(+) diff --git a/mods/ITEMS/mcl_farming/beetroot.lua b/mods/ITEMS/mcl_farming/beetroot.lua index e3a80e928..38081e07f 100644 --- a/mods/ITEMS/mcl_farming/beetroot.lua +++ b/mods/ITEMS/mcl_farming/beetroot.lua @@ -16,6 +16,7 @@ minetest.register_node("mcl_farming:beetroot_0", { _doc_items_entry_name = "Premature Beetroot Plant", paramtype = "light", paramtype2 = "meshoptions", + sunlight_propagates = true, place_param2 = 3, walkable = false, drawtype = "plantlike", @@ -37,6 +38,7 @@ minetest.register_node("mcl_farming:beetroot_1", { _doc_items_create_entry = false, paramtype = "light", paramtype2 = "meshoptions", + sunlight_propagates = true, place_param2 = 3, walkable = false, drawtype = "plantlike", @@ -58,6 +60,7 @@ minetest.register_node("mcl_farming:beetroot_2", { _doc_items_create_entry = false, paramtype = "light", paramtype2 = "meshoptions", + sunlight_propagates = true, place_param2 = 3, walkable = false, drawtype = "plantlike", @@ -80,6 +83,7 @@ minetest.register_node("mcl_farming:beetroot", { _doc_items_create_entry = true, paramtype = "light", paramtype2 = "meshoptions", + sunlight_propagates = true, place_param2 = 3, walkable = false, drawtype = "plantlike", diff --git a/mods/ITEMS/mcl_farming/potatoes.lua b/mods/ITEMS/mcl_farming/potatoes.lua index 09d4b107c..2c846c84e 100644 --- a/mods/ITEMS/mcl_farming/potatoes.lua +++ b/mods/ITEMS/mcl_farming/potatoes.lua @@ -4,6 +4,7 @@ minetest.register_node("mcl_farming:potato_1", { _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", + sunlight_propagates = true, place_param2 = 3, walkable = false, drawtype = "plantlike", @@ -25,6 +26,7 @@ minetest.register_node("mcl_farming:potato_2", { _doc_items_create_entry = false, paramtype = "light", paramtype2 = "meshoptions", + sunlight_propagates = true, place_param2 = 3, walkable = false, drawtype = "plantlike", @@ -46,6 +48,7 @@ minetest.register_node("mcl_farming:potato", { _doc_items_longdesc = "Mature potato plants are ready to be harvested for potatoes. They won't grow any further.", paramtype = "light", paramtype2 = "meshoptions", + sunlight_propagates = true, place_param2 = 3, walkable = false, drawtype = "plantlike",