From 6aa8dc0295ab5e576269a7217b65f41c98a3eea4 Mon Sep 17 00:00:00 2001 From: Mestima Date: Wed, 6 Oct 2021 18:01:47 +0300 Subject: [PATCH] removed useless check --- data/scripts/prefabs/pocketwatchpack.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/data/scripts/prefabs/pocketwatchpack.lua b/data/scripts/prefabs/pocketwatchpack.lua index 464f42c..1cb0f4f 100644 --- a/data/scripts/prefabs/pocketwatchpack.lua +++ b/data/scripts/prefabs/pocketwatchpack.lua @@ -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