summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 5a67b05..a7493c3 100644
--- a/init.lua
+++ b/init.lua
@@ -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