Prevented extra newline on invalid integer for potion or pokeball.

This commit is contained in:
Kristian Knarvik 2017-11-27 11:19:58 +01:00
parent 666c89fa8f
commit b39f03c447

View File

@ -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;
}