diff Modules/Queue.lua @ 89:a12d22ef3f39

AceSerializer has been enabled again as it?s used when exporting/importing groups. All other unused libraries are now really removed. Adjusted debug function to format only when a debug channel is available. Fixed moving from guild banks, checking if items are locked is different then with banks. Now unregistering the item locking event so it doesn?t continue to try to move every time an item is switched after the automated cycle has finished. (geeezus, this description is a total overkill) Fixed item queueing. Queue all when there?s a group without any items inside no longer crashes. Removing cached container data after closing a container.
author Zerotorescue
date Fri, 07 Jan 2011 22:19:03 +0100
parents 3bec0ea44607
children 88898c1e9e61
line wrap: on
line diff
--- a/Modules/Queue.lua	Fri Jan 07 10:34:38 2011 +0100
+++ b/Modules/Queue.lua	Fri Jan 07 22:19:03 2011 +0100
@@ -69,7 +69,7 @@
 	local itemLink = GetTradeSkillItemLink(i);
 	
 	if itemLink then
-		local itemId = addon:GetItemId(itemLink);
+		local itemId = addon:GetItemID(itemLink);
 		if not itemId then
 			-- If this isn't an item, it can only be an enchant instead
 			itemId = tonumber(itemLink:match("|Henchant:([-0-9]+)|h"));
@@ -77,7 +77,7 @@
 			itemId = addon.scrollIds[itemId]; -- change enchantIds into scrollIds
 		end
 		
-		if addon.db.profile.groups[groupName].items[itemId] then
+		if addon.db.profile.groups[groupName].items and addon.db.profile.groups[groupName].items[itemId] then
 			-- This item is in this group, queue it!
 			
 			if temp then