Skip to content

Commit

Permalink
Fix error when CraftInfoAnywhere is not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
b-morgan committed May 4, 2024
1 parent eafc4fe commit 9c31e04
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion SkillLevelData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ function Skillet:GetTradeSkillLevels(itemID, spellID)
end
--
-- Choose the best value(s)
-- (e will be nil if CraftInfoAnywhere is not loaded or the Wago Tools table(s) have no data)
--
if self.db.profile.altskilllevels then
if e and self.db.profile.altskilllevels then
if self.db.profile.baseskilllevel then
a = e
end
Expand Down
20 changes: 10 additions & 10 deletions SkilletNewsData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,22 @@ local isCata = WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC

Skillet.NewsName = "Skillet-Classic News"
Skillet.NewsData = {
{ version = "1.86",
{ version = "1.87",
data = {
{ name = "Changes",
data = {
{ header = "TradeSkill", body = "Fix scan trade bug" },
{ header = "News", body = "Update News" },
{ header = "Skill Levels", body = "Fix error when CraftInfoAnywhere is not loaded" },
},
},
},
},
{ version = "1.86",
data = {
{ name = "Changes",
data = {
{ header = "TradeSkill", body = "Fix scan trade bug" },
{ header = "TOC", body = "Add CraftInfoAnywhere optional dependency" },
},
data = {
{ header = "Skill Levels", body = "Use data from Wago Tools and CraftInfoAnywhere\nto create separate tables for Classic Era and Classic Cataclysm\n" },
},
},
Expand Down Expand Up @@ -64,14 +70,8 @@ Skillet.NewsData = {
{ name = "Changes",
data = {
{ header = "Skill Levels", body = "Update for WotLK recipes" },
},
data = {
{ header = "Slot Filter", body = "Change itemEquipLoc from INVTYPE_ROBE to INVTYPE_CHEST" },
},
data = {
{ header = "TOC", body = "Update TOC" },
},
data = {
{ header = "TradeSkill", body = "Better handling of scan trade errors" },
},
},
Expand Down

0 comments on commit 9c31e04

Please sign in to comment.