Fix progress update bug

This commit is contained in:
Gabriel Tofvesson 2024-09-25 10:02:30 +00:00
parent 82e3f5e67d
commit 49aa10bee7

View File

@ -52,8 +52,9 @@ local Cache = {}
function Cache.makeCache(cacheLoader)
local count = countNamed(store)
local state = {}
local progress = 1
local progress = 0
for name,chest in pairs(store) do
progress = progress + 1
local percent = ""..((progress / count) * 100)
print(percent:sub(1, math.min(#percent, 6))..("0"):rep(6 - #percent).."% ("..progress.."/"..count..")")