diff options
| author | TenPlus1 <kinsellaja@yahoo.com> | 2016-11-16 17:35:31 +0000 |
|---|---|---|
| committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-11-16 17:35:31 +0000 |
| commit | 438ace057d98e7fee818e87d1249c20c7a9f98c7 (patch) | |
| tree | 84d7a1579c3fbc3ff04bf3e53c2c04c64bfe0bd1 /dirt.lua | |
| parent | 8b70c3d6df09b6218d5fa043b0db7dcbb0cbdd03 (diff) | |
add flower spread limit at top of map block
Diffstat (limited to 'dirt.lua')
| -rw-r--r-- | dirt.lua | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
