Fixes some messages and some jar downloads
All checks were successful
KnarCraft/Minecraft-Server-Launcher/pipeline/head This commit looks good
All checks were successful
KnarCraft/Minecraft-Server-Launcher/pipeline/head This commit looks good
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user