Mercurial > wow > reagentmaker
diff ReagentMaker.lua @ 76:9d487333bf10
Block cross-tradeskill in external window
author | contrebasse |
---|---|
date | Sat, 14 May 2011 21:30:56 +0200 |
parents | e837f5681fbb |
children | cd36938d2a48 |
line wrap: on
line diff
--- a/ReagentMaker.lua Sat May 14 21:00:38 2011 +0200 +++ b/ReagentMaker.lua Sat May 14 21:30:56 2011 +0200 @@ -138,10 +138,12 @@ -- If we can make the item needed to make the reagent, open a window to make it -- one step recursion, enables to mill to create an ink if (not A.data[reagentID][1].manyReagents) and A.data[A.data[reagentID][1][1]] then - A.externalCraftWindow(A.data[reagentID][1][1],reagentID) - else - A.Error(A.L["You do not have enough reagents to craft [%s]"]:format(GetItemInfo(reagentID) or "item #"..reagentID)) + if A.externalCraftWindow(A.data[reagentID][1][1],reagentID) ~= false then + return + end end + + A.Error(A.L["You do not have enough reagents to craft [%s]"]:format(GetItemInfo(reagentID) or "item #"..reagentID)) return else A.externalCraftWindow(reagentID)