Fix reported issue with Breakables not updating

If a throttle happens, we lose the items that we already processed. So, effectively, we only display whatever we can find in the final update (i.e. things located toward the end of bags) on machines that can't process all bags in one go.

Fixes #5
This commit is contained in:
2022-12-12 20:50:03 -06:00
parent 6f78aeb7fa
commit 9ac6b125a3
2 changed files with 12 additions and 2 deletions

View File

@ -1129,6 +1129,7 @@ end
do
local bagId = 0
local updatefunc
local foundBreakables = {}
function Breakables:FindBreakables()
if self.settings.hide then
return
@ -1143,9 +1144,14 @@ do
return
end
if currState ~= STATE_SCANNING then
local count = #foundBreakables
for i=0, count do
foundBreakables[i]=nil
end
end
currState = STATE_SCANNING
local foundBreakables = {}
local i=1
local i=#foundBreakables + 1
local numBreakableStacks = {}
local maxTime = GetTimePreciseSec() + 0.01

View File

@ -1,3 +1,7 @@
v1.9.9
- Fix issue with not updating or showing items in some cases.
v1.9.8:
- Add Dragonflight Mystic disenchantable items.