GetPlayerInventory client side patch

amount instead of count is listed, should be good now
This commit is contained in:
MrNewb committed 2025-06-09 15:53:30 -04:00
1 parent 6ae273544d
commit 6c6b4e9e86
2 files changed
+2 -2

No files matched your search

@@ -55,7 +55,7 @@ Inventory.GetPlayerInventory = function()
table.insert(repack, {
name = v.name,
label = v.label,
count = v.count,
count = v.amount,
slot = v.slot,
metadata = v.metadata,
stack = v.unique,
@@ -99,7 +99,7 @@ end
---@param metadata table
---@return number
Inventory.GetItemCount = function(src, item, metadata)
return origin:getItemCount(src, item, metadata, false)
return origin:getItemCount(src, item, metadata, false) or 0
end
---This wil return the players inventory.