- Joined
- Jan 25, 2015
- Messages
- 121
- Thread Author
- #1
ForEach is better way to Dropping items?
Actually I'm using a code like this below and the bot stills undropping some items.
Has another way more efficiently to drop items or could this iteration wrong?
Actually I'm using a code like this below and the bot stills undropping some items.
Code:
for (SpriteItem x : Inventory.getItems()){
if (x != null){
if (x.interact("Drop")){
Execution.delayUntil(() -> !x.isValid(), 1200);
}
}
}
Has another way more efficiently to drop items or could this iteration wrong?