minimap-clock: only update once per second

This commit is contained in:
shagu
2025-08-13 21:06:40 +02:00
parent af72396f32
commit 5601835de6
+1
View File
@@ -33,6 +33,7 @@ module.enable = function(self)
MinimapClock.text:SetAllPoints(MinimapClock)
MinimapClock.text:SetFontObject(GameFontWhite)
MinimapClock:SetScript("OnUpdate", function()
if ( this.tick or 1) > GetTime() then return else this.tick = GetTime() + 1 end
this.text:SetText(date("%H:%M"))
end)