diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-10-29 19:00:29 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-10-29 19:00:29 -0400 |
| commit | 5f2a8015bd5d2a42e79038bb52f20260d8d97ba0 (patch) | |
| tree | 4b2871efacec0fa75a45ab23a989ee6190e915fb /gamemode | |
| parent | 79c1c484eab6fbf36a69d155a324540887e38880 (diff) | |
| download | artery-5f2a8015bd5d2a42e79038bb52f20260d8d97ba0.tar.gz artery-5f2a8015bd5d2a42e79038bb52f20260d8d97ba0.tar.bz2 artery-5f2a8015bd5d2a42e79038bb52f20260d8d97ba0.zip | |
Fixed HasItem() sometimes erroring
Diffstat (limited to 'gamemode')
| -rw-r--r-- | gamemode/shared/inventory.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gamemode/shared/inventory.lua b/gamemode/shared/inventory.lua index 2165686..7b6c9cd 100644 --- a/gamemode/shared/inventory.lua +++ b/gamemode/shared/inventory.lua @@ -108,7 +108,7 @@ function pmeta:HasItem(nameorcomparitor) for row = 1,v[2][2] do for col = 1,v[2][1] do local itemin = v[1][row][col] - if itemin ~= false and comparitor(itemin) then + if (type(itemin) ~= "boolean") and comparitor(itemin) then return row,col,n end end |
