From 0edc72e35d44e0264c104bab5a168c1650ce9dc7 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Thu, 16 Jan 2020 16:03:36 +0100 Subject: [PATCH] switch off delay setting --- README.md | 1 + technic/machines/switching_station_globalstep.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bc75a19..19a479a 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Recommended mods that build on the `technic mod`: * **technic.quarry.quota** per-player and second quarry dig limit (default: 10) * **technic.switch_max_range** max cable length (default: 256) +* **technic.switch.off_delay_seconds** switching station off delay (default: 300 seconds) # Open issues diff --git a/technic/machines/switching_station_globalstep.lua b/technic/machines/switching_station_globalstep.lua index 58fe803..6162ea0 100644 --- a/technic/machines/switching_station_globalstep.lua +++ b/technic/machines/switching_station_globalstep.lua @@ -44,7 +44,7 @@ minetest.register_abm({ end }) -local off_delay_seconds = 300 +local off_delay_seconds = tonumber(minetest.settings:get("technic.switch.off_delay_seconds") or "300") local timer = 0 minetest.register_globalstep(function(dtime)