Close #3829: 将模组/整合包/资源包的默认下载源调整为 Modrinth (#3830)

* Close #3829: Use Modrinth as default download source.

* Update HMCLLocalizedDownloadListPage.java

---------

Co-authored-by: Glavo <zjx001202@gmail.com>
This commit is contained in:
Burning_TNT
2025-04-18 22:49:02 +08:00
committed by GitHub
parent 5ca1120223
commit f351d1d133

View File

@@ -55,11 +55,11 @@ public final class HMCLLocalizedDownloadListPage extends DownloadListPage {
repository = new Repository(type, curseForge, modrinth); repository = new Repository(type, curseForge, modrinth);
supportChinese.set(true); supportChinese.set(true);
downloadSources.get().setAll("mods.curseforge", "mods.modrinth"); downloadSources.get().setAll("mods.modrinth", "mods.curseforge");
if (curseForge != null) { if (modrinth != null) {
downloadSource.set("mods.curseforge");
} else if (modrinth != null) {
downloadSource.set("mods.modrinth"); downloadSource.set("mods.modrinth");
} else if (curseForge != null) {
downloadSource.set("mods.curseforge");
} else { } else {
throw new AssertionError("Should not be here."); throw new AssertionError("Should not be here.");
} }