Working fabric launcher
This commit is contained in:
+3
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user