summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dirt.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/dirt.lua b/dirt.lua
index 7982145..3bb14ef 100644
--- a/dirt.lua
+++ b/dirt.lua
@@ -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