Skip to content

Commit

Permalink
fix(server/inventory): Check for item limit
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Jan 7, 2022
1 parent 31c91a1 commit 05b4885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/inventory/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ function Inventory.GetItemSlots(inv, item, metadata)
if metadata and v.metadata == nil then
v.metadata = {}
end
if not metadata or table.matches(v.metadata, metadata) then
if not metadata or item.limit or table.matches(v.metadata, metadata) then
totalCount = totalCount + v.count
slots[k] = v.count
end
Expand Down

0 comments on commit 05b4885

Please sign in to comment.