# HG changeset patch # User Aaron@Aaron-PC # Date 1282490529 18000 # Node ID 19e007e5eca9db04a090cdcd2775c7b2eaf71dc0 # Parent 399113a204b0a3b5a1fc455f21f08b6423ae3baa Fixed item count so in most cases when an item is not cached the correct count is displayed on the minimap. diff -r 399113a204b0 -r 19e007e5eca9 core.lua --- 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