mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 12:10:01 +00:00
bags: hardcode a limit of 6 bankslots
Some servers have a hardcoded value of max-bankslot that exceed the maxiumum of available slots. Having a server return more purchased slots than available, leads to creation of non-existing bank slot frames that obviously return in errors.
This commit is contained in:
+1
-1
@@ -441,7 +441,7 @@ pfUI:RegisterModule("bags", 20400, function ()
|
||||
local position = "RIGHT"
|
||||
|
||||
if frame == pfUI.bag.left then
|
||||
min, max = 1, GetNumBankSlots()
|
||||
min, max = 1, math.min(6, GetNumBankSlots())
|
||||
tpl = "BankItemButtonBagTemplate"
|
||||
name, append = "pfUIBankBBag", ""
|
||||
position = "LEFT"
|
||||
|
||||
Reference in New Issue
Block a user