From 0a61781b99ec16166ba66f8cb19cd679c8a04f03 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Mon, 1 Aug 2022 14:50:07 -0600 Subject: [PATCH] add an additional check to ensure old timers don't cause inappropriate growth --- df_farming/plants.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/df_farming/plants.lua b/df_farming/plants.lua index f90a492..9cde6d7 100644 --- a/df_farming/plants.lua +++ b/df_farming/plants.lua @@ -134,6 +134,8 @@ local place_seed = function(itemstack, placer, pointed_thing, plantname) local growth_permitted_function = df_farming.growth_permitted[plantname] if not growth_permitted_function or growth_permitted_function(pt.above) then df_farming.plant_timer(pt.above, plantname) + else + minetest.get_node_timer(pt.above):stop() -- make sure no old timers are running on this node end if not minetest.settings:get_bool("creative_mode", false) then itemstack:take_item()