From 84dd7fef7f4ab690823a43d55a46c7436a523a8a Mon Sep 17 00:00:00 2001 From: Zhou Fang Date: Mon, 12 Aug 2024 16:31:04 +0900 Subject: [PATCH] fix: update trackers when mode change fix #406 --- Modules/Maps/EventTracker.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Modules/Maps/EventTracker.lua b/Modules/Maps/EventTracker.lua index 4adae146..b01cd3e0 100644 --- a/Modules/Maps/EventTracker.lua +++ b/Modules/Maps/EventTracker.lua @@ -1412,6 +1412,15 @@ function ET:Initialize() ET:UpdateTrackers() end ) + + self:RegisterEvent( + "CVAR_UPDATE", + function(_, cvar) + if cvar == "miniWorldMap" then + E:Delay(0.25, self.UpdateTrackers, self) + end + end + ) end function ET:ProfileUpdate()