Fix empty location
This commit is contained in:
@@ -73,7 +73,7 @@ function shared.Spotter.Init()
|
|||||||
if not class then return string.format("Could not find class for unit %s", tostring(unit)) end
|
if not class then return string.format("Could not find class for unit %s", tostring(unit)) end
|
||||||
|
|
||||||
local location = Heimdall_Data.config.spotter.zoneOverride
|
local location = Heimdall_Data.config.spotter.zoneOverride
|
||||||
if not location then
|
if not location or location == "" then
|
||||||
local zone = GetZoneText()
|
local zone = GetZoneText()
|
||||||
if not zone then return string.format("Could not find zone for unit %s", tostring(unit)) end
|
if not zone then return string.format("Could not find zone for unit %s", tostring(unit)) end
|
||||||
local subzone = GetSubZoneText()
|
local subzone = GetSubZoneText()
|
||||||
|
|||||||
Reference in New Issue
Block a user