diff Modules/AuctionHouse.lua @ 127:4f26dc55455d

Fixed Snatch. It broke when I converted haveMaterials from a bool to the number of items that can be created. (No changelog entry because that hasn't been released yet)
author Asa Ayers <Asa.Ayers@Gmail.com>
date Thu, 02 Sep 2010 23:29:17 -0700
parents 4ec8611d9466
children
line wrap: on
line diff
--- a/Modules/AuctionHouse.lua	Thu Sep 02 22:34:22 2010 -0700
+++ b/Modules/AuctionHouse.lua	Thu Sep 02 23:29:17 2010 -0700
@@ -107,7 +107,7 @@
 
 	local snatchList = {}
 	local function Export(data)
-		if not data.haveMaterials then
+		if data.haveMaterials < data.queue then
 			for id, reagent in pairs(data.reagents) do
 				if reagent.need > 0 and not snatchList[reagent.link] then
 					snatchList[reagent.link] = true