missing mod dependencies on forge
This commit is contained in:
parent
5ae3046ee2
commit
04e1e75dbd
1 changed files with 13 additions and 0 deletions
|
@ -23,6 +23,7 @@ pub async fn find(log: &str, data: &Data) -> Result<Vec<(String, String)>> {
|
||||||
optinotfine,
|
optinotfine,
|
||||||
pre_1_12_native_transport_java_9,
|
pre_1_12_native_transport_java_9,
|
||||||
wrong_java,
|
wrong_java,
|
||||||
|
forge_missing_dependencies,
|
||||||
];
|
];
|
||||||
|
|
||||||
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();
|
||||||
|
@ -271,3 +272,15 @@ fn wrong_java(log: &str) -> Issue {
|
||||||
log.contains("Java major version is incompatible. Things might break.")
|
log.contains("Java major version is incompatible. Things might break.")
|
||||||
.then_some(issue)
|
.then_some(issue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn forge_missing_dependencies(log: &str) -> Issue {
|
||||||
|
let issue = (
|
||||||
|
"Missing mod dependencies".to_string(),
|
||||||
|
"You seem to be missing mod dependencies.
|
||||||
|
Search for `mandatory dependencies` in your log."
|
||||||
|
.to_string(),
|
||||||
|
);
|
||||||
|
|
||||||
|
let found = log.contains("Missing or unsupported mandatory dependencies");
|
||||||
|
found.then_some(issue)
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue