mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-18 06:26:01 +01:00
add fallback for hasItem if no inventory is found
This commit is contained in:
@@ -67,6 +67,9 @@ function hasItem(items, amount, src)
|
||||
end
|
||||
return true, hasTable
|
||||
end
|
||||
-- if can't find inventory, return false
|
||||
print("^1Error^7: ^1Can't find players inventory for some reason")
|
||||
return false, {}
|
||||
end
|
||||
|
||||
--- Retrieves a player's inventory based on the active inventory system.
|
||||
|
||||
Reference in New Issue
Block a user