Fixes some messages and some jar downloads
All checks were successful
KnarCraft/Minecraft-Server-Launcher/pipeline/head This commit looks good

This commit is contained in:
2020-08-07 02:59:09 +02:00
parent 26cc5370e2
commit b144bbb903
5 changed files with 8 additions and 14 deletions

View File

@ -40,9 +40,11 @@ public class JarDownloader {
throw new FileNotFoundException("Unable to create jars folder");
}
try {
gui.setStatus("Downloading all jars...");
downloadAll();
gui.printMessageToGUI("Finished downloading jars");
gui.setStatus("Finished downloading jars");
} catch (FileNotFoundException | ConfigurationException e) {
gui.setStatus(e.getMessage());
throw new FileNotFoundException("One or more downloads failed: " + e.getMessage());
}
}
@ -58,6 +60,7 @@ public class JarDownloader {
continue;
}
for (String version : type.getVersions()) {
gui.setStatus("Downloading " + type.getName() + version + "...");
boolean success = type.downloadJar(jarDirectory, version);
if (!success) {
throw new FileNotFoundException("Unable to download the jar file for " + type.getName() + version);