diff --git a/items.lua b/items.lua index 57f47b8..e07d1c8 100644 --- a/items.lua +++ b/items.lua @@ -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..")")