comparison Main.lua @ 321:10d45fef6ae1

Added a Debug statement to watch for failures in HandleItemUse.
author James D. Callahan III <jcallahan@curse.com>
date Mon, 14 Oct 2013 14:24:19 -0500
parents 4f2d5a082b6d
children fdf96c61d1b7
comparison
equal deleted inserted replaced
320:4f2d5a082b6d 321:10d45fef6ae1
569 569
570 for line_index = 1, DatamineTT:NumLines() do 570 for line_index = 1, DatamineTT:NumLines() do
571 local current_line = _G["WDPDatamineTTTextLeft" .. line_index] 571 local current_line = _G["WDPDatamineTTTextLeft" .. line_index]
572 572
573 if not current_line then 573 if not current_line then
574 Debug("HandleItemUse: Item with ID %d and link %s did not have a tooltip that contained the string %s.", item_id, item_link, _G.ITEM_OPENABLE)
574 break 575 break
575 end 576 end
576 577
577 if current_line:GetText() == _G.ITEM_OPENABLE then 578 if current_line:GetText() == _G.ITEM_OPENABLE then
578 table.wipe(current_action) 579 table.wipe(current_action)