Fix forge erroring out due to wonky version

This commit is contained in:
Jai A
2021-12-19 18:52:00 -07:00
parent 2a588d1e9a
commit c9598b674c
4 changed files with 16 additions and 6 deletions

View File

@@ -92,6 +92,16 @@ pub async fn retrieve_data(
let minecraft_version = minecraft_version.clone();
async move {
/// These forge versions are not worth supporting!
const WHITELIST : [&str; 1] = [
// Not supported due to `data` field being `[]` even though the type is a map
"1.12.2-14.23.5.2851"
];
if !WHITELIST.contains(&&*loader_version_full) {
return Ok(None);
}
{
let versions = versions_mutex.lock().await;
let version = versions.iter().find(|x|