Working fabric launcher

This commit is contained in:
2025-08-24 14:29:30 +02:00
parent 997cf37d31
commit 77280cd7d6
3 changed files with 12 additions and 12 deletions
+3 -1
View File
@@ -60,7 +60,9 @@ pub fn install_fabric(minecraft_path: &Path, minecraft_version: &str, loader_ver
let profile_json = profile_dir.join(format!("{profile_name}.json"));
let libs_dir = minecraft_path.join("libraries");
let json = query_meta_json(&format!("v2/versions/loader/{minecraft_version}/{loader_version}/profile/json"));
let mut json = query_meta_json(&format!("v2/versions/loader/{minecraft_version}/{loader_version}/profile/json"));
*json.get_mut("id").unwrap() = Value::String(profile_name.clone());
fs::create_dir_all(&profile_dir).unwrap();