From 60963ca454061d2d681fa05dbfebaf422fbdc3a5 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Mon, 3 Feb 2020 10:19:58 +0100 Subject: [PATCH] add docs --- technic/machines/switching_station_globalstep.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/technic/machines/switching_station_globalstep.lua b/technic/machines/switching_station_globalstep.lua index 2581b27..e7ff2aa 100644 --- a/technic/machines/switching_station_globalstep.lua +++ b/technic/machines/switching_station_globalstep.lua @@ -32,7 +32,7 @@ if has_monitoring_mod then ) end - +-- collect all active switching stations minetest.register_abm({ nodenames = {"technic:switching_station"}, label = "Switching Station", @@ -46,6 +46,7 @@ minetest.register_abm({ local off_delay_seconds = tonumber(minetest.settings:get("technic.switch.off_delay_seconds") or "300") +-- iterate over all collected switching stations and execute the technic_run function local timer = 0 minetest.register_globalstep(function(dtime) timer = timer + dtime