From f351d1d1334d0b2190d5af7ab4edfeeecd5c4708 Mon Sep 17 00:00:00 2001 From: Burning_TNT Date: Fri, 18 Apr 2025 22:49:02 +0800 Subject: [PATCH] =?UTF-8?q?Close=20#3829:=20=E5=B0=86=E6=A8=A1=E7=BB=84/?= =?UTF-8?q?=E6=95=B4=E5=90=88=E5=8C=85/=E8=B5=84=E6=BA=90=E5=8C=85?= =?UTF-8?q?=E7=9A=84=E9=BB=98=E8=AE=A4=E4=B8=8B=E8=BD=BD=E6=BA=90=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=B8=BA=20Modrinth=20(#3830)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Close #3829: Use Modrinth as default download source. * Update HMCLLocalizedDownloadListPage.java --------- Co-authored-by: Glavo --- .../hmcl/ui/versions/HMCLLocalizedDownloadListPage.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/HMCLLocalizedDownloadListPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/HMCLLocalizedDownloadListPage.java index ab92b07e0..145878608 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/HMCLLocalizedDownloadListPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/HMCLLocalizedDownloadListPage.java @@ -55,11 +55,11 @@ public final class HMCLLocalizedDownloadListPage extends DownloadListPage { repository = new Repository(type, curseForge, modrinth); supportChinese.set(true); - downloadSources.get().setAll("mods.curseforge", "mods.modrinth"); - if (curseForge != null) { - downloadSource.set("mods.curseforge"); - } else if (modrinth != null) { + downloadSources.get().setAll("mods.modrinth", "mods.curseforge"); + if (modrinth != null) { downloadSource.set("mods.modrinth"); + } else if (curseForge != null) { + downloadSource.set("mods.curseforge"); } else { throw new AssertionError("Should not be here."); }