diff --git a/build.gradle b/build.gradle index 7f0eb0e..9c2638c 100644 --- a/build.gradle +++ b/build.gradle @@ -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" diff --git a/src/main/java/ley/anvil/modpacktools/commands/DownloadMods.java b/src/main/java/ley/anvil/modpacktools/commands/DownloadMods.java index b963247..b7be3df 100644 --- a/src/main/java/ley/anvil/modpacktools/commands/DownloadMods.java +++ b/src/main/java/ley/anvil/modpacktools/commands/DownloadMods.java @@ -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