Skip to content
Snippets Groups Projects
Commit 3d59270a authored by TenPlus1's avatar TenPlus1
Browse files

Checks light above crop and not inside crop.

parent b7cafd19
No related branches found
No related tags found
No related merge requests found
--[[
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment