diff Modules/ArkInventoryRules.lua @ 74:71de6e86a1a4 release 2010-07-29

Fixed a bug where tradeskill that don't produce items, like Inscription Research, cause IA to crash. Added some API enhancements. Added ArkInventory as an optional dependency so it will be loaded before IA.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Thu, 29 Jul 2010 22:33:50 -0700
parents 4ae431c98059
children 2112f71c4237
line wrap: on
line diff
--- a/Modules/ArkInventoryRules.lua	Thu Jul 29 22:29:47 2010 -0700
+++ b/Modules/ArkInventoryRules.lua	Thu Jul 29 22:33:50 2010 -0700
@@ -1,13 +1,13 @@
-if not ArkInventoryRules then
-	return
-end
+
 
 local ItemAuditor = select(2, ...)
 local ArkInventory = ItemAuditor:NewModule("ArkInventory")
 
 function ArkInventory:OnEnable( )
-	ItemAuditor:Print('Registering with ArkInventory')
-	ArkInventoryRules.Register(self, "itemauditor", ArkInventory.Execute)
+	if ArkInventoryRules then
+		ItemAuditor:Print('Registering with ArkInventory')
+		ArkInventoryRules.Register(self, "itemauditor", ArkInventory.Execute)
+	end
 end
 
 function ArkInventory.Execute( ... )