changeset 24:db57cd9273f1

Fixed premade item data update check.
author Zerotorescue
date Thu, 28 Oct 2010 19:20:33 +0200
parents 7d7aaa3fbe94
children 6d4bb32babee
files Core.lua
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/Core.lua	Thu Oct 28 19:14:30 2010 +0200
+++ b/Core.lua	Thu Oct 28 19:20:33 2010 +0200
@@ -103,6 +103,17 @@
 	self:PremadeGroupsCheck();
 end
 
+local function InGroup(itemId)
+	-- Go through all groups to see if this item is already somewhere
+	for groupName, values in pairs(addon.db.global.groups) do
+		if values.items and values.items[itemId] then
+			return groupName;
+		end
+	end
+	
+	return;
+end
+
 function addon:PremadeGroupsCheck(updateGroupName, updateKey, accept)
 	-- Compare the current premade groups with those used, notify about changes
 	if addon.defaultGroups then
@@ -885,17 +896,6 @@
 	return true;
 end
 
-local function InGroup(itemId)
-	-- Go through all groups to see if this item is already somewhere
-	for groupName, values in pairs(addon.db.global.groups) do
-		if values.items and values.items[itemId] then
-			return groupName;
-		end
-	end
-	
-	return;
-end
-
 local function AddToGroup(groupName, itemId)
 	if InGroup(itemId) then
 		return false;