By registering with us, you'll be able to discuss, share and private message with other members of our community.
Sign up now!But the method is called containsOnly, if the inventory contains nothing, then it doesn't contain?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.
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.But the method is called containsOnly, if the inventory contains nothing, then it doesn't contain?
We use essential cookies to make this site work, and optional cookies to enhance your experience.