feat(content): configure discovery provider scope

This commit is contained in:
objz committed 2026-08-04 19:45:53 +02:00
1 parent 94b71fdc4e
commit 52f074ce46
11 files changed
+124 -67

No files matched your search

+2 -4
View File
@@ -147,10 +147,8 @@ async fn download_files(
manifest: &Manifest,
minecraft_dir: &Path,
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let api_key = crate::config::SETTINGS
.content
.curseforge_api_key()
.ok_or("CurseForge API key is not configured")?;
let api_key =
crate::net::curseforge::api_key().ok_or("CurseForge API key is not configured")?;
let client = crate::net::HttpClient::new();
let ids = manifest
.files