From 46f1f7b69e139aadbcefa9e1a33d868447e120d5 Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Sun, 18 Aug 2024 19:18:53 +0700 Subject: [PATCH] [FIX] Symlink in launcher-pack --- .../gravit/launchserver/binary/tasks/PrepareBuildTask.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/PrepareBuildTask.java b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/PrepareBuildTask.java index e509edf3..753f48c5 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/PrepareBuildTask.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/PrepareBuildTask.java @@ -7,10 +7,7 @@ import pro.gravit.utils.helper.UnpackHelper; import java.io.IOException; -import java.nio.file.FileVisitResult; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.SimpleFileVisitor; +import java.nio.file.*; import java.nio.file.attribute.BasicFileAttributes; import java.util.List; import java.util.stream.Collectors; @@ -40,7 +37,7 @@ public Path process(Path inputFile) throws IOException { if(Files.isDirectory(server.launcherLibrariesCompile)) { IOHelper.walk(server.launcherLibrariesCompile, new ListFileVisitor(server.launcherBinary.addonLibs), false); } - try(Stream stream = Files.walk(server.launcherPack).filter((e) -> { + try(Stream stream = Files.walk(server.launcherPack, FileVisitOption.FOLLOW_LINKS).filter((e) -> { try { return !Files.isDirectory(e) && !Files.isHidden(e); } catch (IOException ex) {