Prevented extra newline on invalid integer for potion or pokeball.
This commit is contained in:
parent
666c89fa8f
commit
b39f03c447
@ -293,8 +293,9 @@ public class Game {
|
||||
in.nextLine();
|
||||
return potions.get(choice);
|
||||
}
|
||||
} else {
|
||||
in.nextLine();
|
||||
}
|
||||
in.nextLine();
|
||||
return null;
|
||||
}
|
||||
public static Pokeball chosenPokeball(ArrayList<Pokeball> pokeball) {
|
||||
@ -304,8 +305,9 @@ public class Game {
|
||||
in.nextLine();
|
||||
return pokeball.get(choice);
|
||||
}
|
||||
} else {
|
||||
in.nextLine();
|
||||
}
|
||||
in.nextLine();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user