Fix error when there's no battlefieldminimap

But still play alert
This commit is contained in:
2025-01-11 13:14:08 +01:00
parent dbfbc2c347
commit d104bcc1fa
3 changed files with 9 additions and 3 deletions

View File

@@ -16,6 +16,12 @@ function shared.MinimapTagger.Init()
---@param scale number?
---@param ttl number?
local function PlantFrame(x, y, frame, scale, ttl)
if not BattlefieldMinimap then
if Heimdall_Data.config.minimapTagger.debug then
print(string.format("[%s] BattlefieldMinimap not found", ModuleName))
end
return
end
scale = scale or 1
ttl = ttl or 1
local w, h = BattlefieldMinimap:GetSize()