Missed existing onInventoryChange hook
This commit is contained in:
parent
3b91c4d509
commit
cb3f06358c
|
@ -41,7 +41,6 @@ selectedItem = nil
|
||||||
cancelNextRelease = nil
|
cancelNextRelease = nil
|
||||||
|
|
||||||
function init()
|
function init()
|
||||||
connect(LocalPlayer, {onInventoryChange = refreshPlayerGoods})
|
|
||||||
npcWindow = g_ui.displayUI('npctrade')
|
npcWindow = g_ui.displayUI('npctrade')
|
||||||
npcWindow:setVisible(false)
|
npcWindow:setVisible(false)
|
||||||
|
|
||||||
|
@ -454,6 +453,7 @@ function onInventoryChange(inventory, item, oldItem)
|
||||||
if selectedItem then
|
if selectedItem then
|
||||||
refreshItem(selectedItem)
|
refreshItem(selectedItem)
|
||||||
end
|
end
|
||||||
|
refreshPlayerGoods()
|
||||||
end
|
end
|
||||||
|
|
||||||
function getTradeItemData(id, type)
|
function getTradeItemData(id, type)
|
||||||
|
|
Loading…
Reference in New Issue