From 66d5f0c61872bad4af94ae3cbdcda6d13863e059 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Thu, 30 Jul 2026 19:59:38 -0500 Subject: [PATCH] Switch to PLAYER_EQUIPMENT_CHANGED event Replace UNIT_INVENTORY_CHANGED with PLAYER_EQUIPMENT_CHANGED in event registration and handler --- Core.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Core.lua b/Core.lua index 8459739..1b829ff 100644 --- a/Core.lua +++ b/Core.lua @@ -4840,7 +4840,7 @@ CleveRoids.Frame:RegisterEvent("UPDATE_MACROS") CleveRoids.Frame:RegisterEvent("SPELLS_CHANGED") CleveRoids.Frame:RegisterEvent("ACTIONBAR_SLOT_CHANGED") CleveRoids.Frame:RegisterEvent("BAG_UPDATE_DELAYED") -CleveRoids.Frame:RegisterEvent("UNIT_INVENTORY_CHANGED") +CleveRoids.Frame:RegisterEvent("PLAYER_EQUIPMENT_CHANGED") CleveRoids.Frame:RegisterEvent("UNIT_PET") -- == STATE CHANGE EVENT REGISTRATION (for performance) == @@ -5735,9 +5735,7 @@ function CleveRoids.Frame:BAG_UPDATE_DELAYED() end end -function CleveRoids.Frame:UNIT_INVENTORY_CHANGED() - if arg1 ~= "player" then return end - +function CleveRoids.Frame:PLAYER_EQUIPMENT_CHANGED() -- PERFORMANCE: Invalidate equipment cache for HasGearEquipped if CleveRoids.InvalidateEquipmentCache then CleveRoids.InvalidateEquipmentCache()