1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

Removing snow in the nether, farming modified

- Now, impossible to see snow generated in the nether
- Minimum light level needed to grow wheat and cotton is now 11
This commit is contained in:
LeMagnesium 2014-10-30 22:06:48 +01:00
parent 5250247ac3
commit 9660a2fc60
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ farming.register_plant("farming:wheat", {
description = "Wheat seed",
inventory_image = "farming_wheat_seed.png",
steps = 8,
minlight = 13,
minlight = 11,
maxlight = LIGHT_MAX,
fertility = {"grassland"}
})
@ -45,7 +45,7 @@ farming.register_plant("farming:cotton", {
description = "Cotton seed",
inventory_image = "farming_cotton_seed.png",
steps = 8,
minlight = 13,
minlight = 11,
maxlight = LIGHT_MAX,
fertility = {"grassland", "desert"}
})

View File

@ -81,6 +81,7 @@ end
--This function places snow checking at the same time for snow level and increasing as needed.
--This also takes into account sourrounding snow and makes snow even.
function snow.place(pos)
if pos.y < -19000 then return end -- Don't put anything in the nether!
local node = minetest.get_node_or_nil(pos)
local drawtype = ""
if node and minetest.registered_nodes[node.name] then