Quantcast

automatic Inventory Scan, no. 2.

ckaotik [04-22-10 - 12:06]
automatic Inventory Scan, no. 2.
Filename
core.lua
diff --git a/core.lua b/core.lua
index 2860eec..f37c7a3 100644
--- a/core.lua
+++ b/core.lua
@@ -59,7 +59,7 @@ local function eventHandler(self, event, ...)
 		BrokerGarbage.isAtVendor = false
 		locked = false
 		BrokerGarbage:Debug("lock released")
-BrokerGarbage:ScanInventory()
+		BrokerGarbage:ScanInventory()

 	elseif (locked or cost ~=0) and event == "PLAYER_MONEY" then
 		-- regular unlock
@@ -93,6 +93,7 @@ BrokerGarbage:ScanInventory()
 		cost = 0
 		locked = false
 		BrokerGarbage:Debug("lock released")
+		BrokerGarbage:ScanInventory()

 	end
 end