From 39855a61b2ef1a3fc0c53ac6d0fa2895439304b3 Mon Sep 17 00:00:00 2001 From: Handful of Frogs Date: Fri, 10 May 2024 15:52:30 +0300 Subject: [PATCH] fix: use industrialtest.updateDelay --- machines/common.lua | 2 +- machines/iron_furnace.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/machines/common.lua b/machines/common.lua index 17e2d5a..4102de2 100644 --- a/machines/common.lua +++ b/machines/common.lua @@ -378,7 +378,7 @@ function industrialtest.internal.registerMachine(config) return inv, "src", mcl_util.select_stack(hop_inv, hop_list, inv, "src") end definition._mcl_hoppers_on_after_push=function(pos) - minetest.get_node_timer(pos):start(1.0) + minetest.get_node_timer(pos):start(industrialtest.updateDelay) end end definition.groups._industrialtest_wrenchUnmountable=1 diff --git a/machines/iron_furnace.lua b/machines/iron_furnace.lua index 696b617..bbe9c4d 100644 --- a/machines/iron_furnace.lua +++ b/machines/iron_furnace.lua @@ -305,7 +305,7 @@ elseif industrialtest.mclAvailable then definition._mcl_hoppers_on_try_pull = mcl_furnaces.hoppers_on_try_pull definition._mcl_hoppers_on_try_push = mcl_furnaces.hoppers_on_try_push definition._mcl_hoppers_on_after_push = function(pos) - minetest.get_node_timer(pos):start(1.0) + minetest.get_node_timer(pos):start(industrialtest.updateDelay) end end minetest.register_node("industrialtest:iron_furnace",definition)