From 13272adc85698dfefd814eefb54fac94b6d5dd23 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 7 Jul 2017 17:00:40 +0200 Subject: [PATCH] autovendor: one item per .1 second --- modules/autovendor.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/autovendor.lua b/modules/autovendor.lua index 6597869c..cfe5b523 100644 --- a/modules/autovendor.lua +++ b/modules/autovendor.lua @@ -42,6 +42,9 @@ pfUI:RegisterModule("autovendor", function () end) autovendor:SetScript("OnUpdate", function() + -- throttle to to one item per .1 second + if ( this.tick or 1) > GetTime() then return else this.tick = GetTime() + .1 end + local bag, slot = GetNextGreyItem() if not bag or not slot then