From 9eb85666e6f303fe2f1ab0caaeb0edb0e952a8dc Mon Sep 17 00:00:00 2001 From: Glavo Date: Thu, 28 Nov 2024 01:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=A8=A1=E7=BB=84=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E9=A1=B5=E9=BB=98=E8=AE=A4=E4=B8=8B=E8=BD=BD=E6=BA=90=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E4=B8=BA=20Modrinth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../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 e00db972b9..4d6dafbc89 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 @@ private HMCLLocalizedDownloadListPage(DownloadPage.DownloadCallback callback, bo 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."); }