From 40178ac38b528c10cf88d299f3bded4c3cd9538d Mon Sep 17 00:00:00 2001 From: Beelzebub <34854689+Be1zebub@users.noreply.github.com> Date: Mon, 23 Jan 2023 18:22:51 +0300 Subject: [PATCH] Update sh_item.lua --- gamemode/core/libs/sh_item.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gamemode/core/libs/sh_item.lua b/gamemode/core/libs/sh_item.lua index b21586107..4fbdf109c 100644 --- a/gamemode/core/libs/sh_item.lua +++ b/gamemode/core/libs/sh_item.lua @@ -705,8 +705,8 @@ do if (character) then local inventory = ix.item.inventories[invID] - if (!inventory or inventory == nil) then - inventory:Sync(client) + if (!inventory) then + return end if ((inventory.owner and inventory.owner == character:GetID()) or inventory:OnCheckAccess(client)) then