You've already forked AstralRinth
forked from didirus/AstralRinth
Socket cleanup (#682)
* testing changes * added success * removed success * Fix compile error --------- Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com> Co-authored-by: Jai A <jaiagr+gpg@pm.me>
This commit is contained in:
@@ -134,10 +134,11 @@ impl super::Validator for SpongeValidator {
|
||||
&self,
|
||||
archive: &mut ZipArchive<Cursor<bytes::Bytes>>,
|
||||
) -> Result<ValidationResult, ValidationError> {
|
||||
if !archive
|
||||
.file_names()
|
||||
.any(|name| name == "sponge_plugins.json" || name == "mcmod.info" || name == "META-INF/sponge_plugins.json")
|
||||
{
|
||||
if !archive.file_names().any(|name| {
|
||||
name == "sponge_plugins.json"
|
||||
|| name == "mcmod.info"
|
||||
|| name == "META-INF/sponge_plugins.json"
|
||||
}) {
|
||||
return Ok(ValidationResult::Warning(
|
||||
"No sponge_plugins.json or mcmod.info present for Sponge plugin.",
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user