Skip to content

Commit

Permalink
Fix #392; support NeoForge
Browse files Browse the repository at this point in the history
  • Loading branch information
theRookieCoder committed Feb 7, 2024
1 parent fc6ada3 commit 125d893
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ once_cell = "1.19"
fs_extra = "1.3"
ferinth = "2.10"
colored = "2.1"
libium = "1.24"
libium = "1.25"
anyhow = "1.0"
furse = "1.5"
size = "0.4"
Expand Down
4 changes: 3 additions & 1 deletion src/subcommands/profile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,20 @@ use tokio::fs::create_dir_all;
pub fn pick_mod_loader(default: Option<&ModLoader>) -> Result<ModLoader> {
let mut picker = Select::with_theme(&*THEME)
.with_prompt("Which mod loader do you use?")
.items(&["Quilt", "Fabric", "Forge"]);
.items(&["Quilt", "Fabric", "Forge", "NeoForge"]);
if let Some(default) = default {
picker = picker.default(match default {
ModLoader::Quilt => 0,
ModLoader::Fabric => 1,
ModLoader::Forge => 2,
ModLoader::NeoForge => 3,
});
}
match picker.interact()? {
0 => Ok(ModLoader::Quilt),
1 => Ok(ModLoader::Fabric),
2 => Ok(ModLoader::Forge),
3 => Ok(ModLoader::NeoForge),
_ => unreachable!(),
}
}
Expand Down

0 comments on commit 125d893

Please sign in to comment.