Fixed compiling after location change.

Fixed compiling.
Added automatic javac compilation before jar generation.
This commit is contained in:
2017-11-28 15:30:39 +01:00
parent a5e5750362
commit 907b9e165b
4 changed files with 5 additions and 4 deletions

View File

@ -241,7 +241,7 @@ public class Game {
}
/** If the file is compiled as jar, this will prevent an empty list. */
if (pokemon.size() < 1) {
try (Scanner file = new Scanner(Game.class.getResourceAsStream("/Pokemon.txt"))) {
try (Scanner file = new Scanner(Game.class.getResourceAsStream("/config/Pokemon.txt"))) {
while (file.hasNextLine()) {
pokemon.add(new Pokemon(file.nextLine()));
}