[FEATURE] Support Minecraft 1.20.3/1.20.4

This commit is contained in:
Gravita 2023-12-08 17:53:38 +07:00
parent 7b1f449667
commit 1c90681b3b
2 changed files with 5 additions and 0 deletions

View file

@ -124,6 +124,10 @@ public static ClientProfile makeProfile(ClientProfile.Version version, String ti
builder.setMinJavaVersion(17); builder.setMinJavaVersion(17);
builder.setRecommendJavaVersion(17); builder.setRecommendJavaVersion(17);
} }
if(version.compareTo(ClientProfileVersions.MINECRAFT_1_20_3) >= 0) {
builder.setMinJavaVersion(21);
builder.setRecommendJavaVersion(21);
}
jvmArgs.add("-Dfml.ignorePatchDiscrepancies=true"); jvmArgs.add("-Dfml.ignorePatchDiscrepancies=true");
jvmArgs.add("-Dfml.ignoreInvalidMinecraftCertificates=true"); jvmArgs.add("-Dfml.ignoreInvalidMinecraftCertificates=true");
builder.setJvmArgs(jvmArgs); builder.setJvmArgs(jvmArgs);

View file

@ -17,4 +17,5 @@ private ClientProfileVersions() {
public static final ClientProfile.Version MINECRAFT_1_19 = ClientProfile.Version.of("1.19"); public static final ClientProfile.Version MINECRAFT_1_19 = ClientProfile.Version.of("1.19");
public static final ClientProfile.Version MINECRAFT_1_20 = ClientProfile.Version.of("1.20"); public static final ClientProfile.Version MINECRAFT_1_20 = ClientProfile.Version.of("1.20");
public static final ClientProfile.Version MINECRAFT_1_20_2 = ClientProfile.Version.of("1.20.2"); public static final ClientProfile.Version MINECRAFT_1_20_2 = ClientProfile.Version.of("1.20.2");
public static final ClientProfile.Version MINECRAFT_1_20_3 = ClientProfile.Version.of("1.20.3");
} }