Skip to content

Commit

Permalink
fix(client/utils): incorrect operator to check item hashmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Feb 26, 2023
1 parent 5f4ac2c commit b13f6e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function PlayerHasItems(filter, hasAny)

if tabletype == 'hash' then
for name, amount in pairs(filter) do
local hasItem = (playerItems[name] or 0) < amount
local hasItem = (playerItems[name] or 0) >= amount

if hasAny then
if hasItem then return true end
Expand Down

0 comments on commit b13f6e5

Please sign in to comment.