this is bad but just trying to prevent anything they might run into.
This commit is contained in:
1 parent
33a9b6ba69
commit
2cb847c8cd
1 file changed
+4
-1
@@ -54,7 +54,10 @@ end
|
|||||||
---This will return the entire items table from the inventory.
|
---This will return the entire items table from the inventory.
|
||||||
---@return table
|
---@return table
|
||||||
Inventory.Items = function()
|
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
|
return Framework.Shared.Items
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user