wrong intermediary mappings version

This commit is contained in:
maskers 2024-07-15 21:14:51 +03:00
parent 7c4919fa42
commit 36b6863bca

View file

@ -30,6 +30,7 @@ pub async fn find(log: &str, data: &Data) -> Result<Vec<(String, String)>> {
frapi,
no_disk_space,
java_32_bit,
intermediary_mappings,
];
let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect();
@ -360,4 +361,16 @@ fn java_32_bit(log: &str) -> Issue {
let found = log.contains("Could not reserve enough space for ") || log.contains("Invalid maximum heap size: ");
found.then_some(issue)
}
fn intermediary_mappings(log: &str) -> Issue {
let issue = (
"Wrong Intermediary Mappings version".to_string(),
"You are using Intermediary Mappings for the wrong Minecraft version.
Please select the right version in `Edit > Version`."
.to_string(),
);
let found = log.contains("Mapping source name conflicts detected:");
found.then_some(issue)
}