You've already forked AstralRinth
forked from didirus/AstralRinth
Modrinth index ordering
This commit is contained in:
@@ -845,7 +845,7 @@ pub async fn create_mrpack_json(
|
|||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
let files = projects
|
let mut files = projects
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|(path, version_id)| {
|
.filter_map(|(path, version_id)| {
|
||||||
if let Some(version) = versions.iter().find(|x| x.id == version_id)
|
if let Some(version) = versions.iter().find(|x| x.id == version_id)
|
||||||
@@ -890,6 +890,8 @@ pub async fn create_mrpack_json(
|
|||||||
})
|
})
|
||||||
.collect::<crate::Result<Vec<PackFile>>>()?;
|
.collect::<crate::Result<Vec<PackFile>>>()?;
|
||||||
|
|
||||||
|
files.sort_by(|a, b| a.path.cmp(&b.path));
|
||||||
|
|
||||||
Ok(PackFormat {
|
Ok(PackFormat {
|
||||||
game: "minecraft".to_string(),
|
game: "minecraft".to_string(),
|
||||||
format_version: 1,
|
format_version: 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user