mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-16 07:16:27 -04:00
修复 pending 类型的游戏版本被错误识别为愚人节版的问题 (#4273)
This commit is contained in:
parent
13a2777c87
commit
7035767828
@ -189,8 +189,9 @@ public final class VersionsPage extends Control implements WizardPage, Refreshab
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (remoteVersion instanceof GameRemoteVersion) {
|
if (remoteVersion instanceof GameRemoteVersion) {
|
||||||
|
RemoteVersion.Type versionType = remoteVersion.getVersionType();
|
||||||
String wikiSuffix = getWikiUrlSuffix(remoteVersion.getGameVersion());
|
String wikiSuffix = getWikiUrlSuffix(remoteVersion.getGameVersion());
|
||||||
switch (remoteVersion.getVersionType()) {
|
switch (versionType) {
|
||||||
case RELEASE:
|
case RELEASE:
|
||||||
content.getTags().setAll(i18n("version.game.release"));
|
content.getTags().setAll(i18n("version.game.release"));
|
||||||
content.setImage(VersionIconType.GRASS.getIcon());
|
content.setImage(VersionIconType.GRASS.getIcon());
|
||||||
@ -198,7 +199,8 @@ public final class VersionsPage extends Control implements WizardPage, Refreshab
|
|||||||
break;
|
break;
|
||||||
case PENDING:
|
case PENDING:
|
||||||
case SNAPSHOT:
|
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.getTags().setAll(i18n("version.game.april_fools"));
|
||||||
content.setImage(VersionIconType.APRIL_FOOLS.getIcon());
|
content.setImage(VersionIconType.APRIL_FOOLS.getIcon());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user