Skip to content

Commit

Permalink
Fixed a bug where an error would appear when using the guild bank.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed May 22, 2023
1 parent 24ef41e commit a241bfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions core/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,7 @@ do
function addon:UpdateInteractingFrame(event, kind)
local new
if event == "PLAYER_INTERACTION_MANAGER_FRAME_SHOW" then
if kind == Enum.PlayerInteractionType.Banker or
kind == Enum.PlayerInteractionType.GuildBanker then
if kind == Enum.PlayerInteractionType.Banker then
new = "BANKFRAME"
elseif kind == Enum.PlayerInteractionType.Merchant or
kind == Enum.PlayerInteractionType.Auctioneer or
Expand Down
6 changes: 2 additions & 4 deletions modules/DataSource.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,14 @@ function mod:OnEnable()
end

function mod:BANKFRAME_OPENED(e, kind)
if kind == Enum.PlayerInteractionType.Banker or
kind == Enum.PlayerInteractionType.GuildBanker then
if kind == Enum.PlayerInteractionType.Banker then
self.atBank = true
return self:Update()
end
end

function mod:BANKFRAME_CLOSED(e, kind)
if kind == Enum.PlayerInteractionType.Banker or
kind == Enum.PlayerInteractionType.GuildBanker then
if kind == Enum.PlayerInteractionType.Banker then
self.atBank = false
return self:Update()
end
Expand Down

0 comments on commit a241bfa

Please sign in to comment.