mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 01:29:21 +02:00
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…
x
Reference in New Issue
Block a user