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
|
||||
|
||||
function init()
|
||||
connect(LocalPlayer, {onInventoryChange = refreshPlayerGoods})
|
||||
npcWindow = g_ui.displayUI('npctrade')
|
||||
npcWindow:setVisible(false)
|
||||
|
||||
@ -454,6 +453,7 @@ function onInventoryChange(inventory, item, oldItem)
|
||||
if selectedItem then
|
||||
refreshItem(selectedItem)
|
||||
end
|
||||
refreshPlayerGoods()
|
||||
end
|
||||
|
||||
function getTradeItemData(id, type)
|
||||
|
Loading…
x
Reference in New Issue
Block a user