3pT2BS: Properly check for addOnName in ADDON_LOADED event handler, to avoid initialising once per total number of loaded addons..

This commit is contained in:
Casper V. Kristensen 2020-10-19 16:13:13 +02:00
parent 6d5cd315fa
commit 5e7a3dd6ad
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -64,7 +64,10 @@ function events:COMBAT_LOG_EVENT_UNFILTERED()
end
function events:ADDON_LOADED()
function events:ADDON_LOADED(addOnName)
if addOnName ~= "33pT2BS" then
return
end
ThreepT2BSDB = ThreepT2BSDB or {
["battleShoutPausePeriod"] = 10,
["wrathSetId"] = 218,