From 8fc58be03b43311edde941a47d93f248e7f490c7 Mon Sep 17 00:00:00 2001 From: SX Date: Sat, 22 Aug 2020 21:05:08 +0300 Subject: [PATCH] Remove print, add comment --- technic/machines/switching_station.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/technic/machines/switching_station.lua b/technic/machines/switching_station.lua index 4eea761..41300bb 100644 --- a/technic/machines/switching_station.lua +++ b/technic/machines/switching_station.lua @@ -10,14 +10,13 @@ local reset_overloaded = function(network_id) local remaining = math.max(0, overloaded_networks[network_id] - minetest.get_us_time()) if remaining == 0 then -- Clear cache, remove overload and restart network - print("Removing overloaded network and clearing cache") overloaded_networks[network_id] = nil technic.networks[network_id] = nil end + -- Returns 0 when network reset or remaining time if reset timer has not expired yet return remaining end - local switch_max_range = tonumber(minetest.settings:get("technic.switch_max_range") or "256") local mesecons_path = minetest.get_modpath("mesecons")