Closed SippieCup closed 8 years ago
Can't wait for this to be commited :dancers:
At catch pokemon why you use continue instead of break ?
for (Pokeball pb : Pokeball.values()) {
ball = itemBag().getItem(pb.getBallType());
if (ball != null && ball.getCount() > 0) {
pokeball = pb;
continue;
}
}
if we found a pokeball we should break the loop as it is not needed anymore.
Good catch, I changed it back and forth last night without thinking too much about it because i kept thinking that it was somehow breaking the keepalive loop.
Note API speed was modified in one comment and reverted in another.