fix: show money for all characters

This commit is contained in:
Salikh Gurgenidze
2025-11-16 15:41:03 +04:00
parent af2483ff05
commit 12e55039f3
9 changed files with 66 additions and 91 deletions
+1 -8
View File
@@ -61,7 +61,7 @@ end
-- Initialize bank scanner
function BankScanner:Initialize()
-- Bank opened
-- Bank opened - save bank data
addon.Modules.Events:OnBankOpen(function()
bankOpen = true
addon:Debug("Bank opened")
@@ -83,13 +83,6 @@ function BankScanner:Initialize()
bankOpen = false
addon:Debug("Bank closed")
end, "BankScanner")
-- Update on bag changes while bank is open
addon.Modules.Events:OnBagUpdate(function()
if bankOpen then
BankScanner:SaveToDatabase()
end
end, "BankScanner")
end
-- Check if bank is currently open