From 3d59270aef645f2d98384609d806f591cb6086fa Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 26 May 2016 21:29:13 +0100 Subject: [PATCH] Checks light above crop and not inside crop. --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index e8de0a2..a7b1ceb 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,5 @@ --[[ - Minetest Farming Redo Mod 1.22 (24th May 2016) + Minetest Farming Redo Mod 1.22 (26th May 2016) by TenPlus1 NEW growing routine by prestidigitator auto-refill by crabman77 @@ -428,7 +428,7 @@ function farming.plant_growth_timer(pos, elapsed, node_name) end local growth - local light_pos = {x = pos.x, y = pos.y, z = pos.z} + local light_pos = {x = pos.x, y = pos.y + 1, z = pos.z} local lambda = elapsed / STAGE_LENGTH_AVG if lambda < 0.1 then