yetanotherbot 4 Posted April 11, 2020 I'm trying to list all items in the bank: List<Item> bankItems = getBank().all((item) -> item != null && !item.isPlaceholder()); But the result looks like I wrote this: List<Item> bankItems = getBank().all((item) -> item != null && !item.isPlaceholder()); for(int i = 0; i < 8; i++){ bankItems.addAll(getInventory().all()); bankItems.addAll(getEquipment().all()) } (bug?) Is there a way to get only the bank contents? Thanks
Shy 14 Posted April 11, 2020 Using the code you posted, I don't get the same result that you do. It only includes bank items. Are you sure there isn't something else in your code affecting this. Not sure if this would change anything, but make sure Dreambot is updated to the latest version and that you are using fresh start in Dreambot's settings.
yetanotherbot 4 Author Posted April 11, 2020 That's so strange. I've restarted the client and it is now working as intended. No changes to code. Consider the matter resolved. I'll post if it comes up again.
AliasBots 13 Posted April 11, 2020 4 hours ago, yetanotherbot said: That's so strange. I've restarted the client and it is now working as intended. No changes to code. Consider the matter resolved. I'll post if it comes up again. Are you running the code in multiple tabs at the same time?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.