fork 自 minetest/minetest_game
Papyrus, cactus: Require light level 13 for growth
此提交包含在:
@@ -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
|
||||
|
新增問題並參考
封鎖使用者