# HG changeset patch
# User Zerotorescue
# Date 1299582362 -3600
# Node ID 2bba1734cb17b0792953f73874325a5bef9b18bd
# Parent 0de442454eb6126d8990f8184321e545534c2acc
Added support for TradeSkillMaster_Crafting.
diff -r 0de442454eb6 -r 2bba1734cb17 Plugins/CraftingAddons/CraftingAddons.xml
--- a/Plugins/CraftingAddons/CraftingAddons.xml Fri Feb 25 17:44:30 2011 +0100
+++ b/Plugins/CraftingAddons/CraftingAddons.xml Tue Mar 08 12:06:02 2011 +0100
@@ -4,4 +4,5 @@
+
\ No newline at end of file
diff -r 0de442454eb6 -r 2bba1734cb17 Plugins/CraftingAddons/TradeskillMaster_Crafting.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/CraftingAddons/TradeskillMaster_Crafting.lua Tue Mar 08 12:06:02 2011 +0100
@@ -0,0 +1,15 @@
+do
+
+ local function Queue(tradeSkillIndex, amount)
+ local resultItemLink = GetTradeSkillItemLink(tradeSkillIndex);
+
+ return TSMAPI:AddItemToQueue(resultItemLink, amount, true);
+ end
+
+ local function IsEnabled()
+ return (TSMAPI and TSMAPI.AddItemToQueue);
+ end
+
+ IMRegisterCraftingAddon("TradeskillMaster_Crafting", Queue, IsEnabled);
+
+end