From fd18c6ce96aa97a34b54053ed5ea12bebbc201ce Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Fri, 19 Jun 2020 07:54:02 +0200 Subject: [PATCH] bump switching station timeout to 1800 seconds (half an hour) --- README.md | 2 +- technic/machines/switching_station_globalstep.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f3496bc..6ddbce3 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ Recommended mods that build on the `technic mod`: * **technic.quarry.quota.limit** per-player and second quarry dig limit (default: 10) * **technic.quarry.maxdepth** max depth of the quarry (default: 100) * **technic.switch_max_range** max cable length (default: 256) -* **technic.switch.off_delay_seconds** switching station off delay (default: 300 seconds) +* **technic.switch.off_delay_seconds** switching station off delay (default: 1800 seconds) * **technic.radiation.enable_throttling** enable lag- and per-second-trottling of radiation damage # Chat commands diff --git a/technic/machines/switching_station_globalstep.lua b/technic/machines/switching_station_globalstep.lua index 2ff746b..bbd5ea5 100644 --- a/technic/machines/switching_station_globalstep.lua +++ b/technic/machines/switching_station_globalstep.lua @@ -74,7 +74,7 @@ minetest.register_globalstep(function(dtime) local now = minetest.get_us_time() - local off_delay_seconds = tonumber(minetest.settings:get("technic.switch.off_delay_seconds") or "300") + local off_delay_seconds = tonumber(minetest.settings:get("technic.switch.off_delay_seconds") or "1800") local off_delay_micros = off_delay_seconds*1000*1000 local active_switches = 0