summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-09-02 19:34:28 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-09-02 19:34:28 +0100
commit51cf3bb43a0c5ed49607c08515c8290e13cb6d7b (patch)
tree7d905fad26d79868e7224251c7d6f7728efeb77c
parente554d5111290990fc6f6d08f73bf02d4626cccef (diff)
max light is 15 for natural daylight
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index d3245e4..3f026fb 100644
--- a/init.lua
+++ b/init.lua
@@ -321,7 +321,7 @@ function farming.plant_growth_timer(pos, elapsed, node_name)
end
local MIN_LIGHT = minetest.registered_nodes[node_name].minlight or 13
- local MAX_LIGHT = minetest.registered_nodes[node_name].maxlight or 14
+ local MAX_LIGHT = minetest.registered_nodes[node_name].maxlight or 15
--print ("---", MIN_LIGHT, MAX_LIGHT)
if max_growth == 1 or lambda < 2.0 then
@@ -483,7 +483,7 @@ farming.register_plant = function(name, def)
def.description = def.description or S("Seed")
def.inventory_image = def.inventory_image or "unknown_item.png"
def.minlight = def.minlight or 13
- def.maxlight = def.maxlight or 14
+ def.maxlight = def.maxlight or 15
-- Register seed
minetest.register_node(":" .. mname .. ":seed_" .. pname, {