From fc63c9a56289181e654933fff1247b7d71bc94ea Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Sun, 23 Aug 2026 21:51:52 +0200 Subject: [PATCH] Route free slot counts through central API layer --- mods/free-slots.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/free-slots.lua b/mods/free-slots.lua index 9810bfe..9dc7fe1 100644 --- a/mods/free-slots.lua +++ b/mods/free-slots.lua @@ -1,5 +1,6 @@ local _G = ShaguTweaks.GetGlobalEnv() local L, T = ShaguTweaks.L, ShaguTweaks.T +local API = ShaguTweaks.API local module = ShaguTweaks:register({ title = T["Free Slot Count"], @@ -40,7 +41,7 @@ module.enable = function(self) local hasClass, hasReagent = false, false for bag = 0, 4 do - local free, family = C_Container.GetContainerNumFreeSlots(bag) + local free, family = API.GetContainerNumFreeSlots(bag) free = free or 0 family = family or 0