Skip to content

Commit 4deaa34

Browse files
authored
Fix Lua errors in Pandaria recipes and enhance recipe filtering logic (#821)
1 parent 284289f commit 4deaa34

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Data/News.lua

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ function CraftSim.NEWS:GET_NEWS(itemMap)
2323
f.bb(" Hello and thank you for using CraftSim!\n"),
2424
f.bb(" ( You are awesome! )"),
2525
newP("19.8.5"),
26+
f.P .. f.bb("Recipe Scan"),
27+
f.a .. "Fixed Pandaria 'Way of the' recipes causing lua errors on filter",
2628
f.p .. "11.1.0.59570 Data Update",
2729
newP("19.8.4"),
2830
f.p .. "TOC Update",

Modules/RecipeScan/RecipeScan.lua

+5
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ function CraftSim.RECIPE_SCAN.FilterRecipeInfo(crafterUID, recipeInfo)
156156
professionInfo = C_TradeSkillUI.GetProfessionInfoByRecipeID(recipeInfo.recipeID)
157157
end
158158

159+
if not professionInfo.profession then
160+
printF("ProfessionInfo - profession missing: Exclude")
161+
return false
162+
end
163+
159164
if crafterUID == CraftSim.UTIL:GetPlayerCrafterUID() then
160165
-- update favorites cache
161166
CraftSim.DB.CRAFTER:UpdateFavoriteRecipe(crafterUID, professionInfo.profession, recipeInfo.recipeID,

0 commit comments

Comments
 (0)