diff --git a/src/main/java/me/itzg/helpers/curseforge/CurseForgeInstaller.java b/src/main/java/me/itzg/helpers/curseforge/CurseForgeInstaller.java index c0b14024..b51a85bd 100644 --- a/src/main/java/me/itzg/helpers/curseforge/CurseForgeInstaller.java +++ b/src/main/java/me/itzg/helpers/curseforge/CurseForgeInstaller.java @@ -248,7 +248,9 @@ private static CurseForgeFile resolveModpackFile(SharedFetch preparedFetch, UriB ) { // NOTE latestFiles in mod is only one or two files, so retrieve the full list instead final GetModFilesResponse resp = preparedFetch.fetch( - uriBuilder.resolve("/mods/{modId}/files", mod.getId()) + // 'latest' parameter is not recognized by the API but rather used to force it not to return + // a cached listing + uriBuilder.resolve("/mods/{modId}/files?latest={ts}", mod.getId(), System.currentTimeMillis()) ) .toObject(GetModFilesResponse.class) .execute();