mirror of
https://github.com/parnic/breakables.git
synced 2025-06-16 09:30:13 -05:00
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:
@ -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
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user