Skip to content

Commit 20fae7f

Browse files
committed
update
1 parent f8a58da commit 20fae7f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

HMCLCore/src/main/java/org/jackhuang/hmcl/game/GameVersion.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,9 @@ public static Optional<String> minecraftVersion(Path file) {
202202
Optional<String> result = getVersionOfClassMinecraft(is);
203203
if (result.isPresent()) {
204204
String version = result.get();
205-
// For Minecraft 1.0 rc1/rc2-1/rc2-2/rc2-3, this value is always "RC1"
206-
if (!version.equals("RC1")) {
205+
// For Minecraft 1.0 rc1/rc2-1/rc2-2, this value is "RC1"
206+
// For Minecraft 1.0 rc2-3, this value is "RC2"
207+
if (!version.equals("RC1") && !version.equals("RC2")) {
207208
if (version.startsWith("Beta ")) {
208209
result = Optional.of("b" + version.substring("Beta ".length()));
209210
} else if (version.startsWith("Alpha v")) {

0 commit comments

Comments
 (0)