Skip to content

Commit

Permalink
Count items in bank
Browse files Browse the repository at this point in the history
  • Loading branch information
iambz00 committed Apr 29, 2022
1 parent a1fda17 commit a14f35d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions SavedClassic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SavedClassic = LibStub("AceAddon-3.0"):NewAddon(addonName, "AceEvent-3.0")

SavedClassic.name = addonName
--SavedClassic.version = GetAddOnMetadata(addonName, "Version")
SavedClassic.version = "2.1.2"
SavedClassic.version = "2.2"

local L = LibStub("AceLocale-3.0"):GetLocale(addonName, true)

Expand Down Expand Up @@ -421,10 +421,10 @@ function SavedClassic:BAG_UPDATE_DELAYED()

for itemLink in itemList do
local itemID = self:StripLink(itemLink)
db.itemCount[tonumber(itemID)] = GetItemCount(itemID) or 0
db.itemCount[tonumber(itemID)] = GetItemCount(itemID, true) or 0
end
for id, _ in pairs(self.items) do
db.itemCount[tonumber(id)] = GetItemCount(id) or 0
db.itemCount[tonumber(id)] = GetItemCount(id, true) or 0
end
end

Expand Down
2 changes: 1 addition & 1 deletion SavedClassic.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 20504
## Title: Saved! Classic
## Version: 2.1.2
## Version: 2.2

## Notes: List instances, money, exps and customizable
## Notes-koKR: 인스턴스 귀속 정보 및 골드, 경험치 한눈에 보기
Expand Down

0 comments on commit a14f35d

Please sign in to comment.