Skip to content

Commit

Permalink
Remove print, add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SX authored and BuckarooBanzay committed Aug 22, 2020
1 parent 7c45e88 commit 8fc58be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions technic/machines/switching_station.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8fc58be

Please sign in to comment.