diff options
author | tenplus1 <kinsellaja@yahoo.com> | 2015-01-04 11:59:32 +0000 |
---|---|---|
committer | tenplus1 <kinsellaja@yahoo.com> | 2015-01-04 11:59:32 +0000 |
commit | e94fb0dbceb0a8d14b9ed5502b4ca5bb6f405d07 (patch) | |
tree | 4e44651b3fbb300f4c9c44858d5902b6d299459e | |
parent | 9ffbbf4c0ed89078a8411e29a3de45aad8034205 (diff) |
Update: Cocoa cannot grow in low light
-rw-r--r-- | init.lua | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -88,8 +88,11 @@ 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 -- check if on wet soil |