From ae5d60340df74ed0a661bedaa90c9ed587bf1e55 Mon Sep 17 00:00:00 2001 From: Samuel Walker Date: Sat, 22 Jun 2024 19:29:20 -0600 Subject: [PATCH] fixed quotations around modpack names --- FCLauncher/src-tauri/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FCLauncher/src-tauri/src/main.rs b/FCLauncher/src-tauri/src/main.rs index bd65ca7..131b6b6 100644 --- a/FCLauncher/src-tauri/src/main.rs +++ b/FCLauncher/src-tauri/src/main.rs @@ -22,7 +22,7 @@ fn get_modpacks() -> Vec { println!("{}", v[0]["name"]); let mut packs: Vec = Vec::new(); for pack in v.as_array().unwrap() { - packs.push(pack["name"].to_string()); + packs.push(pack["name"].as_str().unwrap().to_string()); } return packs; }