this is bad but just trying to prevent anything they might run into.

This commit is contained in:
MrNewb committed 2025-07-09 22:10:19 -04:00
1 parent 33a9b6ba69
commit 2cb847c8cd
1 file changed
+4 -1
+4 -1
View File
@@ -54,7 +54,10 @@ end
---This will return the entire items table from the inventory.
---@return table
Inventory.Items = function()
if not Framework.Shared or not Framework.Shared.Items then return Framework.ItemList().Items end
if not Framework.Shared or not Framework.Shared.Items then
local itemList = Framework.ItemList() or { Items = {} }
return itemList.Items
end
return Framework.Shared.Items
end