From af7ad569e7073cebb2536f81e135c04200fb1cdc Mon Sep 17 00:00:00 2001 From: Antonio Lobato Date: Wed, 11 Jan 2023 16:32:02 -0800 Subject: [PATCH] Removed the module call for ItemDatabase. --- core/ItemDatabase.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/ItemDatabase.lua b/core/ItemDatabase.lua index 05386ce..599032f 100644 --- a/core/ItemDatabase.lua +++ b/core/ItemDatabase.lua @@ -27,10 +27,9 @@ local UNKNOWN = _G.UNKNOWN local addonName, addon = ... -addon.ItemDatabase = addon:NewModule("ItemDatabase", "AceEvent-3.0") -local db = addon.ItemDatabase +local ItemDatabase = {} -function db:ReagentData(slotData) +function ItemDatabase:ReagentData(slotData) if not slotData.isCraftingReagent then return false end if not slotData.classID == TRADE_GOODS then return false end return { @@ -38,3 +37,5 @@ function db:ReagentData(slotData) subclassName = addon.TRADESKILL_MAP[slotData.subclassID] or UNKNOWN, } end + +addon.ItemDatabase = ItemDatabase \ No newline at end of file