reduced light required for dirt turn into grass

This commit is contained in:
kaadmy 2015-10-19 16:48:16 -07:00
parent 139db9cdae
commit ee5b16cf26
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ minetest.register_abm( -- dirt and grass footsteps becomes dirt with grass if un
local above = {x=pos.x, y=pos.y+1, z=pos.z}
local name = minetest.get_node(above).name
local nodedef = minetest.registered_nodes[name]
if nodedef and (nodedef.sunlight_propagates or nodedef.paramtype == "light") and nodedef.liquidtype == "none" and (minetest.get_node_light(above) or 0) >= 11 then
if nodedef and (nodedef.sunlight_propagates or nodedef.paramtype == "light") and nodedef.liquidtype == "none" and (minetest.get_node_light(above) or 0) >= 8 then
minetest.set_node(pos, {name = "default:dirt_with_grass"})
end
end