Couldn't extract native jar fix

This commit is contained in:
maskers 2024-07-15 20:50:34 +03:00
parent 0da6a83307
commit 6dc93746c6

View file

@ -25,6 +25,7 @@ pub async fn find(log: &str, data: &Data) -> Result<Vec<(String, String)>> {
wrong_java, wrong_java,
forge_missing_dependencies, forge_missing_dependencies,
legacyjavafixer, legacyjavafixer,
locked_jar,
]; ];
let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect(); let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect();
@ -297,3 +298,15 @@ fn legacyjavafixer(log: &str) -> Issue {
let found = log.contains("[SEVERE] [ForgeModLoader] Unable to launch\njava.util.ConcurrentModificationException"); let found = log.contains("[SEVERE] [ForgeModLoader] Unable to launch\njava.util.ConcurrentModificationException");
found.then_some(issue) found.then_some(issue)
} }
fn locked_jar(log: &str) -> Issue {
let issue = (
"Locked Jars".to_string(),
"Something is locking your library jars.
To fix this, try rebooting your PC."
.to_string(),
);
let found = log.contains("Couldn't extract native jar");
found.then_some(issue)
}