Saplings need to grow minimum light level 13

It's copied from minetest_game.
master
LNJplus 2015-10-28 20:59:38 +01:00
parent 1f3aebd430
commit a4aa5b2c4a
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@ local function can_grow(pos)
if is_soil == 0 then
return false
end
local light_level = minetest.get_node_light(pos)
if not light_level or light_level < 13 then
return false
end
return true
end