Fixed a long standing bug that messed with unknown item recognition

willneedit [02-14-20 - 18:02]
Fixed a long standing bug that messed with unknown item recognition
Filename
CraftStoreLink.lua
InventoryManager.txt
diff --git a/CraftStoreLink.lua b/CraftStoreLink.lua
index f18d053..e7b3b5d 100644
--- a/CraftStoreLink.lua
+++ b/CraftStoreLink.lua
@@ -78,19 +78,22 @@ function CSL:IsStyleNeeded(link)
 	local id, need = SplitLink(link,3), { }
 	if id then
 		for _, char in pairs(Used_CS.GetCharacters()) do
-			if Used_CSA.style.tracking[char] and not Used_CSA.style.knowledge[char][id] then
+			if Used_CSA.style.tracking[char] and not Used_CS.Data.style.knowledge[char][id] then
 				need[char] = true
 				need[#need + 1] = char
 			end
 		end
 	end
+	DEBUG(link)
+	DEBUG(CS.IsStyleNeeded(link))
+	DEBUG(need)
 	return need
 end

 function CSL:IsCookRecipeNeeded(link)
 	local id, need = SplitLink(link,3), { }
 	if id then
-		for char,data in pairs(Used_CSA.cook.knowledge) do
+		for char,data in pairs(Used_CS.Data.cook.knowledge) do
 			if data[id] ~= nil and not data[id] and Used_CSA.cook.tracking[char] then
 				need[char] = true
 				need[#need + 1] = char
@@ -108,7 +111,7 @@ function CSL:IsBlueprintNeeded(link)
 	end

 	if id then
-		for char,data in pairs(Used_CSA.furnisher.knowledge) do
+		for char,data in pairs(Used_CS.Data.furnisher.knowledge) do
 			-- Workaround for CS fixed and Improved: It still has a common switch for cooking and furniture recipes
 			if data[id] ~= nil and not data[id] and (Used_CSA.cook.tracking[char] or Used_CSA.furnisher.tracking[char]) then
 				need[char] = true
diff --git a/InventoryManager.txt b/InventoryManager.txt
index de1a1c7..4e15aa6 100644
--- a/InventoryManager.txt
+++ b/InventoryManager.txt
@@ -1,8 +1,8 @@
 ## Title: InventoryManager
-## APIVersion: 100028
+## APIVersion: 100029
 ## OptionalDependsOn: LibAddonMenu-2.0
 ## SavedVariables: IMSavedVars
-## Version: 2.4.0
+## Version: 2.4.1
 ## Author: iwontsay & iFedix
 ## Description: Automatically stash, retrieve and dispose your items with custom rules!