chore: cleanup.
This commit is contained in:
@@ -55,7 +55,6 @@ public final class ModpackHelper {
|
|||||||
try {
|
try {
|
||||||
return McbbsModpackManifest.readManifest(file, charset);
|
return McbbsModpackManifest.readManifest(file, charset);
|
||||||
} catch (Exception ignored) {
|
} catch (Exception ignored) {
|
||||||
ignored.printStackTrace();
|
|
||||||
// ignore it, not a valid MCBBS modpack.
|
// ignore it, not a valid MCBBS modpack.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -434,7 +434,7 @@ public class McbbsModpackManifest implements Validation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param zip the CurseForge modpack file.
|
* @param zip the MCBBS modpack file.
|
||||||
* @param encoding the modpack zip file encoding.
|
* @param encoding the modpack zip file encoding.
|
||||||
* @throws IOException if the file is not a valid zip file.
|
* @throws IOException if the file is not a valid zip file.
|
||||||
* @throws JsonParseException if the server-manifest.json is missing or malformed.
|
* @throws JsonParseException if the server-manifest.json is missing or malformed.
|
||||||
@@ -450,7 +450,7 @@ public class McbbsModpackManifest implements Validation {
|
|||||||
if (Files.exists(manifestJson)) {
|
if (Files.exists(manifestJson)) {
|
||||||
return fromManifestFile(manifestJson, encoding);
|
return fromManifestFile(manifestJson, encoding);
|
||||||
}
|
}
|
||||||
throw new IOException("`mcbbs.packmeta` or `manifest.json` cannot be found, " + zip + " is not a valid MCBBS modpack");
|
throw new IOException("`mcbbs.packmeta` or `manifest.json` cannot be found");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user