Skip to content

Commit

Permalink
fix GetCorrespondingField
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoizame committed Aug 31, 2022
1 parent 1c53405 commit 582c62d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AtlasLootClassic/ItemDB/ItemDB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,9 @@ function ItemDB:GetNpcID_UNSAFE(addonName, contentName, boss)
end

function ItemDB:GetCorrespondingField(addonName, contentName, newGameVersion)
if not addonName or not contentName or not newGameVersion then return end
if ItemDB.Storage[addonName] and ItemDB.Storage[addonName][contentName] and ItemDB.Storage[addonName][contentName].CorrespondingFields then
return ItemDB.Storage[addonName][contentName].CorrespondingFields[newGameVersion] or contentName
return ItemDB.Storage[addonName][contentName].CorrespondingFields[newGameVersion]
end
end

Expand Down

0 comments on commit 582c62d

Please sign in to comment.