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:
parent
660fb40c44
commit
ef1572fd1b
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user