Skip to content

Commit 0027744

Browse files
committed
hotfix crafterDB
1 parent 6c9eb56 commit 0027744

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CraftSim.toc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Title: CraftSim
55
## Notes: Calculates the average profit based on your profession stats and other tools for dragonflight gold making
66
## Author: genju
7-
## Version: 16.1.0
7+
## Version: 16.1.1
88
## X-Curse-Project-ID: 705015
99
## X-Wago-ID: 0mNwaPKo
1010
## X-WoWI-ID: 26519

DB/crafterDB.lua

+2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ end
9292
function CraftSim.DB.CRAFTER:AddCachedRecipeID(crafterUID, profession, recipeID)
9393
CraftSimDB.crafterDB.data[crafterUID] = CraftSimDB.crafterDB.data[crafterUID] or {}
9494
CraftSimDB.crafterDB.data[crafterUID].cachedRecipeIDs = CraftSimDB.crafterDB.data[crafterUID].cachedRecipeIDs or {}
95+
CraftSimDB.crafterDB.data[crafterUID].cachedRecipeIDs[profession] = CraftSimDB.crafterDB.data[crafterUID]
96+
.cachedRecipeIDs[profession] or {}
9597

9698
if not tContains(CraftSimDB.crafterDB.data[crafterUID].cachedRecipeIDs[profession], recipeID) then
9799
tinsert(CraftSimDB.crafterDB.data[crafterUID].cachedRecipeIDs[profession], recipeID)

Data/News.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function CraftSim.NEWS:GET_NEWS(itemMap)
1515
local news = {
1616
f.bb(" Hello and thank you for using CraftSim!\n"),
1717
f.bb(" ( You are awesome! )"),
18-
newP("16.1.0"),
18+
newP("16.1.1"),
1919
f.P .. "A lot of internal code optimizations to",
2020
f.a .. "prepare for TWW testing/updates",
2121
newP("16.0.0"),

0 commit comments

Comments
 (0)