add flower spread limit at top of map block

master
TenPlus1 2016-11-16 17:35:31 +00:00
parent 8b70c3d6df
commit 438ace057d
1 changed files with 5 additions and 0 deletions

View File

@ -156,6 +156,11 @@ local flower_spread = function(pos, node)
local num = #minetest.find_nodes_in_area_under_air(pos0, pos1, "group:flora")
-- stop flowers spreading too much just below top of map block
if minetest.find_node_near(pos, 2, "ignore") then
return
end
if num > 3
and node.name == "ethereal:crystalgrass" then