Route free slot counts through central API layer

This commit is contained in:
Dusk-92
2026-08-23 21:51:52 +02:00
parent 63f7380de3
commit fc63c9a562
+2 -1
View File
@@ -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