mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01:00
Fixes for last commit
This commit is contained in:
@@ -90,22 +90,22 @@ local function onContainerOpen(container, previousContainer)
|
||||
container.itemsPanel = containerPanel
|
||||
end
|
||||
|
||||
local function onContainerClose(container)
|
||||
function onContainerClose(container)
|
||||
if container.window then container.window:destroy() end
|
||||
end
|
||||
|
||||
local function onContainerAddItem(container, slot, item)
|
||||
function onContainerAddItem(container, slot, item)
|
||||
if not container.window then return end
|
||||
refreshContainerItems(container)
|
||||
end
|
||||
|
||||
local function onContainerUpdateItem(container, slot, item, oldItem)
|
||||
function onContainerUpdateItem(container, slot, item, oldItem)
|
||||
if not container.window then return end
|
||||
local itemWidget = container.itemsPanel:getChildById('item' .. slot)
|
||||
itemWidget:setItem(item)
|
||||
end
|
||||
|
||||
local function onContainerRemoveItem(container, slot, item)
|
||||
function onContainerRemoveItem(container, slot, item)
|
||||
if not container.window then return end
|
||||
refreshContainerItems(container)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user