diff ReagentMaker.lua @ 27:fb02770b8b5e

Same as before (tortoisehg problem)
author contrebasse
date Thu, 28 Apr 2011 19:44:08 +0200
parents 578b9c9479c9
children 76414c6318ff
line wrap: on
line diff
--- a/ReagentMaker.lua	Thu Apr 28 19:43:07 2011 +0200
+++ b/ReagentMaker.lua	Thu Apr 28 19:44:08 2011 +0200
@@ -41,7 +41,11 @@
 		end
 
 		-- Scan availabe recipes
-		local ok = A:ScanSimpleRecipes()
+		-- Rescan in case of problem
+		if not A:ScanSimpleRecipes() then
+			t_throttle = SCAN_DELAY
+			self:SetScript("OnUpdate", throttleScan)
+		end
 
 		-- Show makables reagents
 		A.updateCounts(GetTradeSkillSelectionIndex())