Separate names with a comma.
Discussion in 'Client & Site Support' started by Defeat3d, May 4, 2015.
Inventory#containsOnly() returns true when the inventory is empty.
RS3 not confirmed.
That seems like desired behavior, it doesn't contain any items that aren't the specified items. Use containsOnly and containsAllOf or containsAnyOf depending on what behavior you want.
But the method is called containsOnly, if the inventory contains nothing, then it doesn't contain?
It contains only items within the given array, even if there aren't technically any items in the inventory. Anything it does contain is within the given array.