disabled right click in inventory for auctions/bids tabs

This commit is contained in:
Manuel Simon Hirsig
2017-03-01 01:08:52 +01:00
parent 3ec9cfb638
commit bf613cfa79
+3 -3
View File
@@ -93,12 +93,12 @@ end
function UseContainerItem(...)
temp(arg)
if modified or not index(active_tab, 'USE_ITEM') then
if modified or not active_tab then
return orig.UseContainerItem(unpack(arg))
end
local item_info = info.container_item(arg[1], arg[2])
if item_info then
return active_tab.USE_ITEM(item_info)
if item_info and active_tab.USE_ITEM then
active_tab.USE_ITEM(item_info)
end
end