From 49aa10bee745f4d1ad9448df205ad7e7b57628f1 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Wed, 25 Sep 2024 10:02:30 +0000 Subject: [PATCH] Fix progress update bug --- items.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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..")")