mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-01 15:50:39 +02:00
Remove print, add comment
This commit is contained in:
@ -10,14 +10,13 @@ local reset_overloaded = function(network_id)
|
|||||||
local remaining = math.max(0, overloaded_networks[network_id] - minetest.get_us_time())
|
local remaining = math.max(0, overloaded_networks[network_id] - minetest.get_us_time())
|
||||||
if remaining == 0 then
|
if remaining == 0 then
|
||||||
-- Clear cache, remove overload and restart network
|
-- Clear cache, remove overload and restart network
|
||||||
print("Removing overloaded network and clearing cache")
|
|
||||||
overloaded_networks[network_id] = nil
|
overloaded_networks[network_id] = nil
|
||||||
technic.networks[network_id] = nil
|
technic.networks[network_id] = nil
|
||||||
end
|
end
|
||||||
|
-- Returns 0 when network reset or remaining time if reset timer has not expired yet
|
||||||
return remaining
|
return remaining
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local switch_max_range = tonumber(minetest.settings:get("technic.switch_max_range") or "256")
|
local switch_max_range = tonumber(minetest.settings:get("technic.switch_max_range") or "256")
|
||||||
|
|
||||||
local mesecons_path = minetest.get_modpath("mesecons")
|
local mesecons_path = minetest.get_modpath("mesecons")
|
||||||
|
Reference in New Issue
Block a user