From ff82c71a03e3d478359d7a240ac1cd96571fab8c Mon Sep 17 00:00:00 2001 From: cora Date: Wed, 27 Jul 2022 22:01:53 +0200 Subject: [PATCH] Remove plant growth lbm -> abm catch_up --- mods/ITEMS/mcl_farming/shared_functions.lua | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/mods/ITEMS/mcl_farming/shared_functions.lua b/mods/ITEMS/mcl_farming/shared_functions.lua index 7b9784503..7b8309d1f 100644 --- a/mods/ITEMS/mcl_farming/shared_functions.lua +++ b/mods/ITEMS/mcl_farming/shared_functions.lua @@ -68,6 +68,7 @@ function mcl_farming:add_plant(identifier, full_grown, names, interval, chance) nodenames = names, interval = interval, chance = chance, + catch_up = true, action = function(pos, node) local low_speed = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name ~= "mcl_farming:soil_wet" mcl_farming:grow_plant(identifier, pos, node, false, false, low_speed) @@ -460,18 +461,3 @@ function mcl_farming:stem_color(startcolor, endcolor, step, step_count) local colorstring = string.format("#%02X%02X%02X", color.r, color.g, color.b) return colorstring end - -minetest.register_lbm({ - label = "Add growth for unloaded farming plants", - name = "mcl_farming:growth", - nodenames = {"group:plant"}, - run_at_every_load = true, - action = function(pos, node) - local identifier = plant_nodename_to_id_list[node.name] - if not identifier then - return - end - local low_speed = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name ~= "mcl_farming:soil_wet" - mcl_farming:grow_plant(identifier, pos, node, false, false, low_speed) - end, -})