From 63b85c04186ff9bc922d62892525ec735eae78ff Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 29 Sep 2018 01:44:49 +0200 Subject: [PATCH] tbc: skip containerslot numbers for keyring --- api/tbc.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/tbc.lua b/api/tbc.lua index c758a5ae..80ad29dc 100644 --- a/api/tbc.lua +++ b/api/tbc.lua @@ -42,3 +42,12 @@ end -- blacklist unrequired modules pfUI.module.autoshift = true + +-- keyring returns +function pfUI.api.GetContainerNumSlots(bag) + if bag == -2 and pfUI.bag and not pfUI.bag.showKeyring then + return 0 + else + return _G.GetContainerNumSlots(bag) + end +end