From 6371d78aa9ec566f8f2bb9b8757ab0293d9366f5 Mon Sep 17 00:00:00 2001 From: Gary Tate Date: Wed, 26 Apr 2023 15:56:48 +0100 Subject: [PATCH] Store container ID in the isContainer variable --- plugins/containers/sh_plugin.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/containers/sh_plugin.lua b/plugins/containers/sh_plugin.lua index d5bde2042..49525004e 100644 --- a/plugins/containers/sh_plugin.lua +++ b/plugins/containers/sh_plugin.lua @@ -42,7 +42,7 @@ if (SERVER) then ix.inventory.New(0, "container:" .. model:lower(), function(inventory) -- we'll technically call this a bag since we don't want other bags to go inside inventory.vars.isBag = true - inventory.vars.isContainer = true + inventory.vars.isContainer = "container:" .. model:lower() if (IsValid(container)) then container:SetInventory(inventory) @@ -145,7 +145,7 @@ if (SERVER) then ix.inventory.Restore(inventoryID, data2.width, data2.height, function(inventory) inventory.vars.isBag = true - inventory.vars.isContainer = true + inventory.vars.isContainer = "container:" .. v[4]:lower() if (IsValid(entity)) then entity:SetInventory(inventory)