You've already forked AstralRinth
forked from didirus/AstralRinth
Update validators again (#925)
* Update validators again * fix tests + clippy
This commit is contained in:
@@ -48,6 +48,10 @@ impl super::Validator for ModpackValidator {
|
||||
));
|
||||
}
|
||||
|
||||
if pack.files.is_empty() && !archive.file_names().any(|x| x.starts_with("overrides/")) {
|
||||
return Err(ValidationError::InvalidInput("Pack has no files!".into()));
|
||||
}
|
||||
|
||||
for file in &pack.files {
|
||||
if !file.hashes.contains_key(&PackFileHash::Sha1) {
|
||||
return Err(ValidationError::InvalidInput(
|
||||
|
||||
Reference in New Issue
Block a user