hotfix:Now Detects MMC error for version 21

This commit is contained in:
TacoGS 2024-05-17 21:47:56 -03:00 committed by Petr Mrázek
parent 4a6f0c42a5
commit 26959d97b2

View file

@ -127,7 +127,10 @@ fn one_seventeen_plus_java_too_old(log: &str) -> Option<(&str, String)> {
fn two_one_plus_java_too_old(log: &str) -> Option<(&str, String)> {
const JAVA_CHECK_CLASS_FILE_VERSION: &str = "(class file version 65.0)";
if log.contains(JAVA_CHECK_CLASS_FILE_VERSION) {
const JAVA_CHECK_CLASS_FILE_VERSION_MMC: &str = "Minecraft 24w14a and above require the use of Java 21";
if log.contains(JAVA_CHECK_CLASS_FILE_VERSION)
|| log.contains(JAVA_CHECK_CLASS_FILE_VERSION_MMC)
{
Some(("", RESPONSES.get("use-java-21")?.to_string()))
} else {
None