mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-12-04 08:14:44 +00:00
add fallback for hasItem if no inventory is found
This commit is contained in:
1 parent
3bd9935346
commit
65137207ae
1 file changed
+3
@@ -67,6 +67,9 @@ function hasItem(items, amount, src)
|
|||||||
end
|
end
|
||||||
return true, hasTable
|
return true, hasTable
|
||||||
end
|
end
|
||||||
|
-- if can't find inventory, return false
|
||||||
|
print("^1Error^7: ^1Can't find players inventory for some reason")
|
||||||
|
return false, {}
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Retrieves a player's inventory based on the active inventory system.
|
--- Retrieves a player's inventory based on the active inventory system.
|
||||||
|
|||||||
Reference in new issue
Block a user