Fix dumb bug with MinecraftProvider.copyNonClassFiles

This commit is contained in:
Juuxel
2020-07-27 18:54:52 +03:00
parent 4378a48f99
commit 09aa17bb1d

View File

@@ -321,7 +321,7 @@ public class MinecraftProvider extends DependencyProvider {
private void copyNonClassFiles(File source, File target) throws IOException {
try (FileSystem sourceFs = FileSystems.newFileSystem(new URI("jar:" + source.toURI()), ImmutableMap.of("create", false));
FileSystem targetFs = FileSystems.newFileSystem(new URI("jar:" + source.toURI()), ImmutableMap.of("create", false))) {
FileSystem targetFs = FileSystems.newFileSystem(new URI("jar:" + target.toURI()), ImmutableMap.of("create", false))) {
for (Path rootDirectory : sourceFs.getRootDirectories()) {
java.nio.file.Files.walk(rootDirectory)
.filter(java.nio.file.Files::isRegularFile)