summaryrefslogtreecommitdiff
path: root/dirt.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-11-16 17:35:31 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-11-16 17:35:31 +0000
commit438ace057d98e7fee818e87d1249c20c7a9f98c7 (patch)
tree84d7a1579c3fbc3ff04bf3e53c2c04c64bfe0bd1 /dirt.lua
parent8b70c3d6df09b6218d5fa043b0db7dcbb0cbdd03 (diff)
add flower spread limit at top of map block
Diffstat (limited to 'dirt.lua')
-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