Skip to content
Snippets Groups Projects
Commit 8bc93598 authored by SmallJoker's avatar SmallJoker Committed by paramat
Browse files

Papyrus, cactus: Require light level 13 for growth

parent f07c4dcd
No related branches found
No related tags found
No related merge requests found
......@@ -186,6 +186,9 @@ function default.grow_cactus(pos, node)
if height == 4 or node.name ~= "air" then
return
end
if minetest.get_node_light(pos) < 13 then
return
end
minetest.set_node(pos, {name = "default:cactus"})
return true
end
......@@ -209,6 +212,9 @@ function default.grow_papyrus(pos, node)
if height == 4 or node.name ~= "air" then
return
end
if minetest.get_node_light(pos) < 13 then
return
end
minetest.set_node(pos, {name = "default:papyrus"})
return true
end
......
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