From cd9cfe1126377d92f27538e585f99e963b0a7643 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Thu, 1 Apr 2010 23:19:29 -0400 Subject: [PATCH] In addon:UpdateFilters(): Remove the VISIBLE state from each recipe in the list before checking to see if the state should be applied. --- ARL.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ARL.lua b/ARL.lua index af2a237..89d2455 100644 --- a/ARL.lua +++ b/ARL.lua @@ -1637,6 +1637,8 @@ do local SF = private.recipe_state_flags for recipe_id, recipe in pairs(recipe_list) do + recipe:RemoveState("VISIBLE") + if recipe.profession == current_profession then local is_known = recipe:HasState("KNOWN") @@ -1659,10 +1661,9 @@ do else can_display = false end - local is_visible = recipe:HasState("VISIBLE") - if (can_display and not is_visible) or (not can_display and is_visible) then - recipe.state = bit.bxor(recipe.state, SF.VISIBLE) + if can_display then + recipe:AddState("VISIBLE") end end Player.recipes_total = recipes_total -- 1.7.9.5