From 46bf871ba24c7ef312987f5eea7dd8ef305c9cdc Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 10 Jun 2017 04:12:13 +0200 Subject: [PATCH] Don't randomly destroy double plants --- mods/ITEMS/mcl_flowers/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ITEMS/mcl_flowers/init.lua b/mods/ITEMS/mcl_flowers/init.lua index 38e316174..b71ec962d 100644 --- a/mods/ITEMS/mcl_flowers/init.lua +++ b/mods/ITEMS/mcl_flowers/init.lua @@ -275,6 +275,10 @@ minetest.register_abm({ interval = 12, chance = 2, action = function(pos, node) + -- Ignore the upper part of double plants + if minetest.get_item_group(node.name, "double_plant") == 2 then + return + end local below = minetest.get_node_or_nil({x=pos.x, y=pos.y-1, z=pos.z}) if not below then return