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) {