removed useless check

This commit is contained in:
Mestima 2021-10-06 18:01:47 +03:00
parent 436f4e8c39
commit 6aa8dc0295
No known key found for this signature in database
GPG Key ID: 30B59EB1D7F18807

View File

@ -10,11 +10,9 @@ end
local function onclose(inst)
local owner = inst and inst.components and inst.components.inventoryitem and inst.components.inventoryitem.owner or nil
if owner ~= nil then
local container = owner and owner.components and owner.components.inventory and owner.components.inventory:GetOverflowContainer() or nil
if container ~= nil then
container:Open(owner)
end
local container = owner and owner.components and owner.components.inventory and owner.components.inventory:GetOverflowContainer() or nil
if container ~= nil then
container:Open(owner)
end
end