Fix error when there's no battlefieldminimap
But still play alert
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user