RuneMate version: 2.99.7
Affected games: OSRS (probably all, but I'm only using it here)
Code used:
Inventory.newQuery().names(inventoryItem.getDefinition().getName()).results().toArray();
Stack trace:
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to...
When you start a bot with the client logged out, upon logging in it will trigger the onItemAdded event for each item you have currently in your inventory. If the client is logged in already when the bot is started, this does not happen, nor does it happen if you later log the client out and back...