From 0af2749ac445b39a1350f5a69d328d404c7ec43e Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Thu, 21 Mar 2019 13:10:10 +0100 Subject: [PATCH] tune abm intervals to introduce jitter --- technic/machines/switching_station.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/technic/machines/switching_station.lua b/technic/machines/switching_station.lua index 47d4fe8..ff4665e 100644 --- a/technic/machines/switching_station.lua +++ b/technic/machines/switching_station.lua @@ -251,7 +251,7 @@ end minetest.register_abm({ nodenames = {"technic:switching_station"}, label = "Switching Station", -- allows the mtt profiler to profile this abm individually - interval = 1, + interval = 1.1, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) if not technic.powerctrl_state then return end @@ -524,7 +524,7 @@ end minetest.register_abm({ label = "Machines: timeout check", nodenames = {"group:technic_machine"}, - interval = 1, + interval = 1.9, chance = 3, action = function(pos, node, active_object_count, active_object_count_wider) local meta = minetest.get_meta(pos)