From 7035767828e327f41c1438cacf5737a88402209a Mon Sep 17 00:00:00 2001 From: Glavo Date: Sat, 16 Aug 2025 16:08:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20pending=20=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E6=B8=B8=E6=88=8F=E7=89=88=E6=9C=AC=E8=A2=AB?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E8=AF=86=E5=88=AB=E4=B8=BA=E6=84=9A=E4=BA=BA?= =?UTF-8?q?=E8=8A=82=E7=89=88=E7=9A=84=E9=97=AE=E9=A2=98=20(#4273)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/jackhuang/hmcl/ui/download/VersionsPage.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java index 0d76fdc14..d13f12c63 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java @@ -189,8 +189,9 @@ public final class VersionsPage extends Control implements WizardPage, Refreshab } if (remoteVersion instanceof GameRemoteVersion) { + RemoteVersion.Type versionType = remoteVersion.getVersionType(); String wikiSuffix = getWikiUrlSuffix(remoteVersion.getGameVersion()); - switch (remoteVersion.getVersionType()) { + switch (versionType) { case RELEASE: content.getTags().setAll(i18n("version.game.release")); content.setImage(VersionIconType.GRASS.getIcon()); @@ -198,7 +199,8 @@ public final class VersionsPage extends Control implements WizardPage, Refreshab break; case PENDING: case SNAPSHOT: - if (GameVersionNumber.asGameVersion(remoteVersion.getGameVersion()).isSpecial()) { + if (versionType == RemoteVersion.Type.SNAPSHOT + && GameVersionNumber.asGameVersion(remoteVersion.getGameVersion()).isSpecial()) { content.getTags().setAll(i18n("version.game.april_fools")); content.setImage(VersionIconType.APRIL_FOOLS.getIcon()); } else {