diff core.lua @ 26:19e007e5eca9 v1.05

Fixed item count so in most cases when an item is not cached the correct count is displayed on the minimap.
author Aaron@Aaron-PC
date Sun, 22 Aug 2010 10:22:09 -0500
parents bc8c0631172b
children da9bbf7b08c7
line wrap: on
line diff
--- a/core.lua	Fri Aug 20 18:21:21 2010 -0500
+++ b/core.lua	Sun Aug 22 10:22:09 2010 -0500
@@ -216,6 +216,14 @@
         end
     end
     
+    --[[ hook OnProfileChanged to fix cleanup database ]]
+    local oldFunction2 = GatherMate.OnProfileChanged
+    
+    GatherMate.OnProfileChanged = function(lself, ...)
+        lself.db.profile.cleanupRange["RecipeProfit"] = lself.db.profile.cleanupRange["RecipeProfit"] or 15
+        oldFunction2(lself, ...)
+    end
+    
 end