mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-12-26 10:40:20 +01:00
Update: Cocoa cannot grow in low light
This commit is contained in:
parent
9ffbbf4c0e
commit
e94fb0dbce
5
init.lua
5
init.lua
@ -88,7 +88,10 @@ minetest.register_abm({
|
||||
if not minetest.registered_nodes[plant..(numb + 1)] then return end
|
||||
|
||||
-- Check for Cocoa Pod
|
||||
if plant == "farming:cocoa_" and minetest.find_node_near(pos, 1, {"default:jungletree"}) then
|
||||
if plant == "farming:cocoa_"
|
||||
and minetest.find_node_near(pos, 1, {"default:jungletree", "moretrees:jungletree_leaves_green"}) then
|
||||
|
||||
if minetest.get_node_light(pos) < 12 then return end
|
||||
|
||||
else
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user