# HG changeset patch # User Aaron@MATT-DAMON # Date 1313948037 18000 # Node ID 962cafb5915d56137dbc3164ff752e136f65755b # Parent 63dcee910f5e50952b9db0c1d50b3625abd95d58 Fixed CleanupDatabase range. diff -r 63dcee910f5e -r 962cafb5915d core.lua --- a/core.lua Wed Jan 26 10:23:36 2011 -0600 +++ b/core.lua Sun Aug 21 12:33:57 2011 -0500 @@ -152,7 +152,8 @@ GatherMate:GetModule("Config"):RegisterModule("RecipeProfit", options) GatherMate:RegisterDBType("RecipeProfit", db.storage) GatherMate.db.profile.show["RecipeProfit"] = GatherMate.db.profile.show["RecipeProfit"] or "always" - + GatherMate.db.profile.cleanupRange["RecipeProfit"] = 0.0; + set_node_constants() inject_options() @@ -174,7 +175,7 @@ local oldFunction2 = GatherMate.OnProfileChanged GatherMate.OnProfileChanged = function(lself, ...) - lself.db.profile.cleanupRange["RecipeProfit"] = lself.db.profile.cleanupRange["RecipeProfit"] or 15 + lself.db.profile.cleanupRange["RecipeProfit"] = lself.db.profile.cleanupRange["RecipeProfit"] or 0.0; lself.db.profile.show["RecipeProfit"] = lself.db.profile.show["RecipeProfit"] == "never" and "never" or "always"; oldFunction2(lself, ...) end