mirror of
https://github.com/Anvilcraft/modpacktools
synced 2024-11-17 23:41:55 +01:00
Update to new Addonscript
This commit is contained in:
parent
29a2768882
commit
52f766fa3e
2 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
compile 'com.squareup.okhttp3:okhttp:4.8.0'
|
||||
compile 'com.github.Anvilcraft:addonscript-java:425271587d'
|
||||
compile 'com.github.Anvilcraft:addonscript-java:f05d4e33c3'
|
||||
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
|
||||
compile 'com.moandjiezana.toml:toml4j:0.7.2'
|
||||
compile "com.github.TheRandomLabs:CurseAPI:master-SNAPSHOT"
|
||||
|
|
|
@ -34,8 +34,8 @@ public class DownloadMods implements ICommand {
|
|||
FileDownloader.downloadAsync(
|
||||
Main.MPJH.getJson().getDefaultVersion().getRelLinks(Main.MPJH.getJson().indexes, "client", false, "internal.dir:mods", null).stream()
|
||||
.collect(Collectors.toMap(
|
||||
i -> Util.sanitizeURL(toURL.apply(i.getKey())),
|
||||
i -> new File(args[1], Paths.get(toURL.apply(i.getKey()).getPath()).getFileName().toString())
|
||||
i -> Util.sanitizeURL(toURL.apply(i.getLink())),
|
||||
i -> new File(args[1], Paths.get(toURL.apply(i.getLink()).getPath()).getFileName().toString())
|
||||
)),
|
||||
r -> {
|
||||
//Synced to prevent the exception being printed too late
|
||||
|
|
Loading…
Reference in a new issue