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();
|
in.nextLine();
|
||||||
return potions.get(choice);
|
return potions.get(choice);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
in.nextLine();
|
in.nextLine();
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
public static Pokeball chosenPokeball(ArrayList<Pokeball> pokeball) {
|
public static Pokeball chosenPokeball(ArrayList<Pokeball> pokeball) {
|
||||||
@ -304,8 +305,9 @@ public class Game {
|
|||||||
in.nextLine();
|
in.nextLine();
|
||||||
return pokeball.get(choice);
|
return pokeball.get(choice);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
in.nextLine();
|
in.nextLine();
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user