mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 20:06:39 -04:00
update
This commit is contained in:
parent
94891a270b
commit
61d92395fc
@ -112,6 +112,7 @@ public class McbbsModpackCompletionTask extends CompletableFutureTask<Void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Path rootPath = repository.getVersionRoot(version).toPath();
|
Path rootPath = repository.getVersionRoot(version).toPath();
|
||||||
|
Files.createDirectories(rootPath);
|
||||||
|
|
||||||
Map<McbbsModpackManifest.File, McbbsModpackManifest.File> localFiles = manifest.getFiles().stream().collect(Collectors.toMap(Function.identity(), Function.identity()));
|
Map<McbbsModpackManifest.File, McbbsModpackManifest.File> localFiles = manifest.getFiles().stream().collect(Collectors.toMap(Function.identity(), Function.identity()));
|
||||||
|
|
||||||
@ -173,7 +174,6 @@ public class McbbsModpackCompletionTask extends CompletableFutureTask<Void> {
|
|||||||
return executor.all(tasks.stream().filter(Objects::nonNull).collect(Collectors.toList()));
|
return executor.all(tasks.stream().filter(Objects::nonNull).collect(Collectors.toList()));
|
||||||
})).thenAcceptAsync(wrapConsumer(unused1 -> {
|
})).thenAcceptAsync(wrapConsumer(unused1 -> {
|
||||||
Path manifestFile = repository.getModpackConfiguration(version).toPath();
|
Path manifestFile = repository.getModpackConfiguration(version).toPath();
|
||||||
Files.createDirectories(manifestFile.getParent());
|
|
||||||
JsonUtils.writeToJsonFile(manifestFile,
|
JsonUtils.writeToJsonFile(manifestFile,
|
||||||
new ModpackConfiguration<>(manifest, this.configuration.getType(), this.manifest.getName(), this.manifest.getVersion(),
|
new ModpackConfiguration<>(manifest, this.configuration.getType(), this.manifest.getName(), this.manifest.getVersion(),
|
||||||
this.manifest.getFiles().stream()
|
this.manifest.getFiles().stream()
|
||||||
|
@ -132,6 +132,7 @@ public class ModrinthInstallTask extends Task<Void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Path root = repository.getVersionRoot(name).toPath();
|
Path root = repository.getVersionRoot(name).toPath();
|
||||||
|
Files.createDirectories(root);
|
||||||
JsonUtils.writeToJsonFile(root.resolve("modrinth.index.json"), manifest);
|
JsonUtils.writeToJsonFile(root.resolve("modrinth.index.json"), manifest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user