From d76a363d37ab4a5cffcd4416a3aef814382ba82d Mon Sep 17 00:00:00 2001 From: telkar-rg Date: Sun, 12 Nov 2023 11:06:51 +0100 Subject: [PATCH] added call for Loots:setupLootTable() so if the rev LUT has not been created yet, it will be created after the DB has been loaded --- Altoholic-Addon/Altoholic/Core.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Altoholic-Addon/Altoholic/Core.lua b/Altoholic-Addon/Altoholic/Core.lua index 0ef344d..2b06d3d 100644 --- a/Altoholic-Addon/Altoholic/Core.lua +++ b/Altoholic-Addon/Altoholic/Core.lua @@ -134,7 +134,9 @@ local AddonDB_Defaults = { WarningType3 = "30|15|10|5|4|3|2|1", -- for calendar events WarningType4 = "30|15|10|5|4|3|2|1", -- for item timers (like mysterious egg) }, -}} + LootSourceTooltip = { version = 0, single={}, multi={}, }, + }, +} -- ** LDB Launcher ** LibStub:GetLibrary("LibDataBroker-1.1"):NewDataObject(addonName, { @@ -217,6 +219,8 @@ function addon:OnInitialize() addon:RegisterMessage("DATASTORE_GUILD_MEMBER_OFFLINE") addon:RegisterMessage("DATASTORE_GUILD_MAIL_RECEIVED") addon:RegisterMessage("DATASTORE_GLOBAL_MAIL_EXPIRY") + + addon.Loots:setupLootTable() end function addon:GetGuildMemberVersion(member)