1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-24 12:16:28 +01:00

Remove packed check from bootstrapper

Introducing that packed flag was a mistake tbh
This commit is contained in:
Henry Le Grys 2021-02-19 03:07:29 +00:00
parent 660fb40c44
commit ef1572fd1b

View File

@ -92,14 +92,7 @@ public class Downloader implements Runnable, ProgressObservable {
checkInterrupted();
boolean packed = true;
Object packedCheck = ((JSONObject) object).get("packed");
if (packedCheck == Boolean.FALSE) {
packed = false;
}
String extension = packed ? ".jar.pack" : ".jar";
File finalFile = new File(bootstrap.getBinariesDir(), System.currentTimeMillis() + extension);
File finalFile = new File(bootstrap.getBinariesDir(), System.currentTimeMillis() + ".jar");
File tempFile = new File(finalFile.getParentFile(), finalFile.getName() + ".tmp");
log.info("Downloading " + url + " to " + tempFile.getAbsolutePath());