diff --git a/LauncherCore/src/main/java/pro/gravit/utils/HttpDownloader.java b/LauncherCore/src/main/java/pro/gravit/utils/HttpDownloader.java index ad4cd272..798f4452 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/HttpDownloader.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/HttpDownloader.java @@ -7,6 +7,7 @@ import java.io.IOException; import java.io.OutputStream; import java.net.URL; +import java.nio.file.Files; import java.nio.file.Path; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Consumer; @@ -56,8 +57,9 @@ public static void downloadFile(URL url, Path file, Consumer chanheTrac public static void downloadZip(URL url, Path dir) throws IOException { try (ZipInputStream input = IOHelper.newZipInput(url)) { for (ZipEntry entry = input.getNextEntry(); entry != null; entry = input.getNextEntry()) { - if (entry.isDirectory()) - continue; // Skip directories + if (entry.isDirectory()) { + Files.createDirectory(dir.resolve(IOHelper.toPath(entry.getName()))); + } // Unpack entry String name = entry.getName(); LogHelper.subInfo("Downloading file: '%s'", name); diff --git a/modules b/modules index ee796454..7f7a4bf2 160000 --- a/modules +++ b/modules @@ -1 +1 @@ -Subproject commit ee796454c63c6dcc39419f03fe1518326c7bcf20 +Subproject commit 7f7a4bf268e70ee64d08baaa2049308332ddfc4e