mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-03 11:26:38 -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();
|
||||
Files.createDirectories(rootPath);
|
||||
|
||||
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()));
|
||||
})).thenAcceptAsync(wrapConsumer(unused1 -> {
|
||||
Path manifestFile = repository.getModpackConfiguration(version).toPath();
|
||||
Files.createDirectories(manifestFile.getParent());
|
||||
JsonUtils.writeToJsonFile(manifestFile,
|
||||
new ModpackConfiguration<>(manifest, this.configuration.getType(), this.manifest.getName(), this.manifest.getVersion(),
|
||||
this.manifest.getFiles().stream()
|
||||
|
@ -132,6 +132,7 @@ public class ModrinthInstallTask extends Task<Void> {
|
||||
}
|
||||
|
||||
Path root = repository.getVersionRoot(name).toPath();
|
||||
Files.createDirectories(root);
|
||||
JsonUtils.writeToJsonFile(root.resolve("modrinth.index.json"), manifest);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user