You've already forked AstralRinth
forked from didirus/AstralRinth
Fix incorrect condition for forge and incorrect fabric loader version ordering
This commit is contained in:
@@ -229,13 +229,23 @@ pub async fn retrieve_data(
|
||||
version.loaders.sort_by(|x, y| {
|
||||
list.loader
|
||||
.iter()
|
||||
.position(|z| x.id == z.version)
|
||||
.position(|z| {
|
||||
x.id.split('-')
|
||||
.next()
|
||||
.unwrap_or_default()
|
||||
== &*z.version
|
||||
})
|
||||
.unwrap_or_default()
|
||||
.cmp(
|
||||
&list
|
||||
.loader
|
||||
.iter()
|
||||
.position(|z| y.id == z.version)
|
||||
.position(|z| {
|
||||
y.id.split('-')
|
||||
.next()
|
||||
.unwrap_or_default()
|
||||
== z.version
|
||||
})
|
||||
.unwrap_or_default(),
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user