From ef1572fd1b8a88a7e2c0b12caa32b60083a65b94 Mon Sep 17 00:00:00 2001 From: Henry Le Grys Date: Fri, 19 Feb 2021 03:07:29 +0000 Subject: [PATCH] Remove packed check from bootstrapper Introducing that packed flag was a mistake tbh --- .../java/com/skcraft/launcher/bootstrap/Downloader.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/launcher-bootstrap/src/main/java/com/skcraft/launcher/bootstrap/Downloader.java b/launcher-bootstrap/src/main/java/com/skcraft/launcher/bootstrap/Downloader.java index c17c181..3247f4d 100644 --- a/launcher-bootstrap/src/main/java/com/skcraft/launcher/bootstrap/Downloader.java +++ b/launcher-bootstrap/src/main/java/com/skcraft/launcher/bootstrap/Downloader.java @@ -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());