diff --git a/crops/cocoa.lua b/crops/cocoa.lua index 1fb3194..825aaf1 100644 --- a/crops/cocoa.lua +++ b/crops/cocoa.lua @@ -146,10 +146,12 @@ local def = { }, sounds = default.node_sound_leaves_defaults(), growth_check = function(pos, node_name) + if minetest.find_node_near(pos, 1, {"default:jungletree"}) then - return false + return false -- can grow end - return true + + return true -- cannot grow end } diff --git a/crops/sunflower.lua b/crops/sunflower.lua index 58a6c87..1a45054 100644 --- a/crops/sunflower.lua +++ b/crops/sunflower.lua @@ -84,11 +84,6 @@ minetest.register_craftitem("farming:sunflower_bread", { groups = {food_bread = 1, flammable = 2} }) -minetest.register_craftitem("farming:sunflower_bread", { - description = S("Sunflower Bread"), - inventory_image = "farming_sunflower_bread.png" -}) - minetest.register_craft({ output = "farming:sunflower_bread", recipe = {{"group:food_sunflower_seeds_toasted", "group:food_bread", "group:food_sunflower_seeds_toasted"}} diff --git a/init.lua b/init.lua index e8f3fe4..bd28b6c 100644 --- a/init.lua +++ b/init.lua @@ -340,7 +340,6 @@ function farming.plant_growth_timer(pos, elapsed, node_name) if max_growth == 1 or lambda < 2.0 then local light = (minetest.get_node_light(light_pos) or 0) - --print ("light level:", light) if light < MIN_LIGHT or light > MAX_LIGHT then return true