aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/inventory.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/shared/inventory.lua')
-rw-r--r--gamemode/shared/inventory.lua2
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