mirror of
https://github.com/minetest-mods/technic.git
synced 2025-02-23 07:10:19 +01:00
tune abm intervals to introduce jitter
This commit is contained in:
parent
e44bf92960
commit
0af2749ac4
@ -251,7 +251,7 @@ end
|
|||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"technic:switching_station"},
|
nodenames = {"technic:switching_station"},
|
||||||
label = "Switching Station", -- allows the mtt profiler to profile this abm individually
|
label = "Switching Station", -- allows the mtt profiler to profile this abm individually
|
||||||
interval = 1,
|
interval = 1.1,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
if not technic.powerctrl_state then return end
|
if not technic.powerctrl_state then return end
|
||||||
@ -524,7 +524,7 @@ end
|
|||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "Machines: timeout check",
|
label = "Machines: timeout check",
|
||||||
nodenames = {"group:technic_machine"},
|
nodenames = {"group:technic_machine"},
|
||||||
interval = 1,
|
interval = 1.9,
|
||||||
chance = 3,
|
chance = 3,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user