Fix stale UI state and wrapper ordering

This commit is contained in:
Dusk-92
2026-08-30 10:26:24 +02:00
parent 48fa6cd025
commit dbb7cd3f69
4 changed files with 41 additions and 17 deletions
+6 -3
View File
@@ -137,9 +137,7 @@ module.enable = function(self)
end
end)
_G.SLASH_EQUIP1 = "/equip"
_G.SLASH_EQUIP2 = "/use"
_G.SlashCmdList.EQUIP = function(msg)
local function EquipOrUse(msg)
if not msg or msg == "" then return end
local bag, slot
@@ -164,4 +162,9 @@ module.enable = function(self)
UseInventoryItem(slot)
end
end
-- Keep the original Macro Tweaks conveniences, but do not steal /equip or
-- /use from another addon that already registered either command.
RegisterSlashAlias("SHAGUTWEAKS_EQUIP", "/equip", EquipOrUse)
RegisterSlashAlias("SHAGUTWEAKS_USE", "/use", EquipOrUse)
end