From 7dbb3777f074d30210c8f30d5dca20d1cf32fcf7 Mon Sep 17 00:00:00 2001 From: DJSchaffner Date: Wed, 20 Mar 2024 16:12:15 +0100 Subject: [PATCH] remove categories instead of wiping them --- main.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index d27b1db..7f09f44 100644 --- a/main.lua +++ b/main.lua @@ -29,11 +29,14 @@ end local function updateCategories() -- Wipe custom categories since we can't retrieve deleted set from itemRack (Except maybe store duplicate of sets and check last version of it) for category, _ in pairs(CustomCategories) do - -- @TODO completely remove label as custom category from BetterBags - categories:WipeCategory(L:G(category)) - printChat("Wiped category '" .. L:G(category) .. "'") + -- @TODO use temporary categories when the feature is added in BetterBags + categories:DeleteCategory(L:G(category)) + printChat("Deleted category '" .. L:G(category) .. "'") end + -- Reset list of in-use categories + CustomCategories = {} + -- Keep track of all used items and their associated sets local usedItems = {}