From d1e006ed29464e4af8662c37231590be0ff618f7 Mon Sep 17 00:00:00 2001 From: Wulian233 <1055917385@qq.com> Date: Mon, 11 Aug 2025 20:57:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=89=88=E6=9C=AC=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=92=E5=BA=8F=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#4244)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jackhuang/hmcl/download/game/GameRemoteVersion.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/game/GameRemoteVersion.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/game/GameRemoteVersion.java index 7fd4e4a76..cb72b90fe 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/game/GameRemoteVersion.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/game/GameRemoteVersion.java @@ -54,15 +54,16 @@ public final class GameRemoteVersion extends RemoteVersion { @Override public int compareTo(RemoteVersion o) { - if (!(o instanceof GameRemoteVersion)) + if (!(o instanceof GameRemoteVersion)) { return 0; + } int dateCompare = o.getReleaseDate().compareTo(getReleaseDate()); if (dateCompare != 0) { return dateCompare; } - return GameVersionNumber.compare(getSelfVersion(), o.getSelfVersion()); + return GameVersionNumber.compare(o.getSelfVersion(), getSelfVersion()); } private static Type getReleaseType(ReleaseType type) {