From aef2a61c6b9b0e30c76396cf8c45bb1b94991530 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 28 Sep 2018 22:34:09 +0200 Subject: [PATCH] bags: use static return for bank slots --- api/api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/api.lua b/api/api.lua index 29f99973..3cda60de 100644 --- a/api/api.lua +++ b/api/api.lua @@ -184,7 +184,8 @@ end -- returns: [string] the type of the bag, e.g "QUIVER" function pfUI.api.GetBagFamily(bag) if bag == -2 then return "KEYRING" end - if bag == 0 then return "BAG" end + if bag == 0 then return "BAG" end -- backpack + if bag == -1 then return "BAG" end -- bank local _, _, id = strfind(GetInventoryItemLink("player", ContainerIDToInventoryID(bag)) or "", "item:(%d+)") if id then