From ef8b7e230d17b424749e0ce428720afa7ac4fe6d Mon Sep 17 00:00:00 2001 From: paramat Date: Fri, 16 Oct 2015 11:51:27 +0100 Subject: [PATCH] Default/trees: Add requirement of light level 13 for sapling growth --- mods/default/trees.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/default/trees.lua b/mods/default/trees.lua index 07cc4d73..5f50b040 100644 --- a/mods/default/trees.lua +++ b/mods/default/trees.lua @@ -16,6 +16,10 @@ local function can_grow(pos) if is_soil == 0 then return false end + local ll = minetest.get_node_light(pos) + if not ll or ll < 13 then -- Minimum light level for growth + return false -- matches grass, wheat and cotton + end return true end