From af1465ab0c32c7b3e60d9249b6dec799370957f8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 23 Jan 2018 01:54:59 +0100 Subject: [PATCH] Tweak chorus flower aging --- mods/ITEMS/mcl_end/chorus_plant.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ITEMS/mcl_end/chorus_plant.lua b/mods/ITEMS/mcl_end/chorus_plant.lua index 38022570fd..1d30d5c53c 100644 --- a/mods/ITEMS/mcl_end/chorus_plant.lua +++ b/mods/ITEMS/mcl_end/chorus_plant.lua @@ -114,6 +114,7 @@ minetest.register_abm({ break end end + local grown = false if node_above.name == "air" and air_around then local branching = false local h = 0 @@ -150,7 +151,6 @@ minetest.register_abm({ grow_chance = 20 end - local grown = false if grow_chance then local new_flowers = {} local r = math.random(1, 100) @@ -190,9 +190,9 @@ minetest.register_abm({ grown = true end end - if not grown then - minetest.set_node(pos, {name = "mcl_end:chorus_flower_dead"}) - end + end + if not grown then + minetest.set_node(pos, {name = "mcl_end:chorus_flower_dead"}) end end, })