Skip to content

Commit 92e183a

Browse files
Fixed modrinth mods not upgrading
1 parent 62e5524 commit 92e183a

File tree

4 files changed

+55
-91
lines changed

4 files changed

+55
-91
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog for Ferium
22

3+
## [3.10.1] - 17.01.2022
4+
5+
- Upgrading Modrinth mods now correctly check the mod loader by converting the mod loader name to lowercase
6+
37
## [3.10.0] - 16.01.2022
48

59
HUGE UPDATE

Cargo.lock

Lines changed: 45 additions & 89 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ferium"
3-
version = "3.10.0"
3+
version = "3.10.1"
44
edition = "2021"
55
authors = ["theRookieCoder <[email protected]>"]
66
description = "Ferium is an easy to use CLI program for managing Minecraft mods on Modrinth and Github Releases"

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,10 +873,14 @@ async fn upgrade_modrinth(modrinth: &Ferinth, profile: &json::Profile) -> FResul
873873
for game_version in &version.game_versions {
874874
if game_version.contains(&game_version_to_check) {
875875
compatible_game_version = true;
876+
break;
876877
}
877878
}
878879

879-
if compatible_game_version && version.loaders.contains(&profile.mod_loader.to_string())
880+
if compatible_game_version
881+
&& version
882+
.loaders
883+
.contains(&profile.mod_loader.to_string().to_lowercase())
880884
{
881885
latest_compatible_version = Some(version);
882886
break;

0 commit comments

Comments
 (0)