From 1da72bfa400abb0b51d1c5f986fd38d3ca326675 Mon Sep 17 00:00:00 2001 From: Duane Date: Sun, 12 Jun 2016 05:36:37 -0500 Subject: [PATCH] Stop rampant mushroom spread. --- abms.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/abms.lua b/abms.lua index c306a0b..a527325 100644 --- a/abms.lua +++ b/abms.lua @@ -143,6 +143,10 @@ minetest.register_abm({ interval = 200 * fun_caves.time_factor, chance = 25, action = function(pos, node) + -- Clumsy, but it's the best way to limit them to caves. + if pos.y > 0 then + return + end local pos_up = {x=pos.x,y=pos.y+1,z=pos.z} local node_up = get_node_or_nil(pos_up) if not node_up then