From 438ace057d98e7fee818e87d1249c20c7a9f98c7 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 16 Nov 2016 17:35:31 +0000 Subject: add flower spread limit at top of map block --- dirt.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dirt.lua') 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 -- cgit v1.2.3