mirror of
https://github.com/Mestima/wanda.git
synced 2025-05-03 13:40:15 +00:00
removed useless check
This commit is contained in:
parent
436f4e8c39
commit
6aa8dc0295
@ -10,11 +10,9 @@ end
|
|||||||
|
|
||||||
local function onclose(inst)
|
local function onclose(inst)
|
||||||
local owner = inst and inst.components and inst.components.inventoryitem and inst.components.inventoryitem.owner or nil
|
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
|
||||||
local container = owner and owner.components and owner.components.inventory and owner.components.inventory:GetOverflowContainer() or nil
|
if container ~= nil then
|
||||||
if container ~= nil then
|
container:Open(owner)
|
||||||
container:Open(owner)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user