Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@502y
Copy link
Contributor

@502y 502y commented Aug 31, 2025

此PR必须在 CFPAOrg/Minecraft-Mod-Language-Package#5523 后才能合并,否则会导致GitHub访问性较好的用户无法正常使用。

计划是这样的……

  1. i18n在下载前对所有下载源进行连接性检查,并将相应最快的那个作为本次的下载源
  2. 如果用户到Github响应最快,从GitHub下载资源包
  3. 通过索引文件确认每个版本最新的release
  4. 根据每个Release Tag下载资源包

顺便支持了对葫芦服务器的镜像。

GameAssetDetail ret = new GameAssetDetail();

ret.downloads = convert.convertFrom.stream().map(it -> getAssetMetaData(it, loader)).map(it -> {
String asset_root = getFastestUrl();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

驼峰变量名,下同

@502y 502y requested a review from xfl03 October 17, 2025 13:17
Copy link
Member

@xfl03 xfl03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

格式问题较多,建议format一下
没别的问题了,改好可以合并了

@502y
Copy link
Contributor Author

502y commented Oct 17, 2025

格式问题较多,建议format一下 没别的问题了,改好可以合并了

All fixed

@502y 502y requested a review from xfl03 October 17, 2025 13:34
Removed commented out localhost mirror URL.
@xfl03 xfl03 merged commit 4062de1 into CFPAOrg:main Oct 17, 2025
1 check passed
@502y 502y deleted the support_mirrors branch October 19, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants