Skip to content

Commit

Permalink
database: limit the scan to one item per second
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Sep 18, 2019
1 parent f261f68 commit d733891
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions database.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ end
-- check for unlocalized servers and fallback to enUS databases when the server
-- returns item names that are different to the database ones. (check via. Hearthstone)
CreateFrame("Frame"):SetScript("OnUpdate", function()
-- throttle to to one item per second
if ( this.tick or 0) > GetTime() then return else this.tick = GetTime() + 1 end

ItemRefTooltip:SetOwner(UIParent, "ANCHOR_PRESERVE")
ItemRefTooltip:SetHyperlink("item:6948:0:0:0")
if ItemRefTooltipTextLeft1 and ItemRefTooltipTextLeft1:IsVisible() then
Expand Down

0 comments on commit d733891

Please sign in to comment.