Skip to content

Commit

Permalink
hotfix crafterDB
Browse files Browse the repository at this point in the history
  • Loading branch information
derfloh205 committed Apr 25, 2024
1 parent 6c9eb56 commit 0027744
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CraftSim.toc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Title: CraftSim
## Notes: Calculates the average profit based on your profession stats and other tools for dragonflight gold making
## Author: genju
## Version: 16.1.0
## Version: 16.1.1
## X-Curse-Project-ID: 705015
## X-Wago-ID: 0mNwaPKo
## X-WoWI-ID: 26519
Expand Down
2 changes: 2 additions & 0 deletions DB/crafterDB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ end
function CraftSim.DB.CRAFTER:AddCachedRecipeID(crafterUID, profession, recipeID)
CraftSimDB.crafterDB.data[crafterUID] = CraftSimDB.crafterDB.data[crafterUID] or {}
CraftSimDB.crafterDB.data[crafterUID].cachedRecipeIDs = CraftSimDB.crafterDB.data[crafterUID].cachedRecipeIDs or {}
CraftSimDB.crafterDB.data[crafterUID].cachedRecipeIDs[profession] = CraftSimDB.crafterDB.data[crafterUID]
.cachedRecipeIDs[profession] or {}

if not tContains(CraftSimDB.crafterDB.data[crafterUID].cachedRecipeIDs[profession], recipeID) then
tinsert(CraftSimDB.crafterDB.data[crafterUID].cachedRecipeIDs[profession], recipeID)
Expand Down
2 changes: 1 addition & 1 deletion Data/News.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function CraftSim.NEWS:GET_NEWS(itemMap)
local news = {
f.bb(" Hello and thank you for using CraftSim!\n"),
f.bb(" ( You are awesome! )"),
newP("16.1.0"),
newP("16.1.1"),
f.P .. "A lot of internal code optimizations to",
f.a .. "prepare for TWW testing/updates",
newP("16.0.0"),
Expand Down

0 comments on commit 0027744

Please sign in to comment.