diff options
-rw-r--r-- | src-tauri/src/mod_management/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-tauri/src/mod_management/mod.rs b/src-tauri/src/mod_management/mod.rs index a52c6980..5d745f64 100644 --- a/src-tauri/src/mod_management/mod.rs +++ b/src-tauri/src/mod_management/mod.rs @@ -294,7 +294,8 @@ pub fn get_installed_mods_and_properties( }; let mut installed_mods = Vec::new(); - let mapping = enabled_mods.as_object().unwrap(); + let binding = serde_json::Map::new(); // Empty map in case treating as object fails + let mapping = enabled_mods.as_object().unwrap_or(&binding); // Use list of installed mods and set enabled based on `enabledmods.json` for mut current_mod in found_installed_mods { |