Mercurial > wow > spotlight-hidden-artifact-skin-tracking
comparison Spotlight.lua @ 8:a30c29933ebc
Fix for a minor bug that would occur if Spotlight loaded out of order with LDB
author | Vynn <mischivin@gmail.com> |
---|---|
date | Wed, 01 Feb 2017 13:06:22 -0500 |
parents | 59c355620405 |
children | cbf645630277 |
comparison
equal
deleted
inserted
replaced
7:8a6367aea7a4 | 8:a30c29933ebc |
---|---|
131 end | 131 end |
132 | 132 |
133 local function EventHandler(self, event, ...) | 133 local function EventHandler(self, event, ...) |
134 if event == "VARIABLES_LOADED" then | 134 if event == "VARIABLES_LOADED" then |
135 if Initialize() then | 135 if Initialize() then |
136 print("|T" .. dataobj.icon .. ":0|t |cffe5cc80Spotlight v" .. GetAddOnMetadata("Spotlight", "Version") .. " Loaded!|r") | 136 print("|T" .. GetInventoryItemTexture("player", 16) .. ":0|t |cffe5cc80Spotlight v" .. GetAddOnMetadata("Spotlight", "Version") .. " Loaded!|r") |
137 end | 137 end |
138 end | 138 end |
139 if event == "CRITERIA_UPDATE" or "PLAYER_ENTERING_WORLD" then | 139 if event == "CRITERIA_UPDATE" or "PLAYER_ENTERING_WORLD" then |
140 Spotlight.Update(); | 140 Spotlight.Update(); |
141 end | 141 end |