diff --git a/apps/oneclient/frontend/src/components/Bundle/DownloadModButton.tsx b/apps/oneclient/frontend/src/components/Bundle/DownloadModButton.tsx index 8e66e60e..1a3499c6 100644 --- a/apps/oneclient/frontend/src/components/Bundle/DownloadModButton.tsx +++ b/apps/oneclient/frontend/src/components/Bundle/DownloadModButton.tsx @@ -10,13 +10,6 @@ export function DownloadModButton({ cluster, file }: { cluster: ClusterModel; fi const download = useCommandMut(async () => { if ('Managed' in file.kind) { const [pkg, version] = file.kind.Managed; - if (version.dependencies.length > 0) - for (const dependency of version.dependencies) { - const slug = dependency.project_id ?? ''; - const versions = await bindings.core.getPackageVersions(pkg.provider, slug, cluster.mc_version, cluster.mc_loader, 0, 1); - await bindings.core.downloadPackage(pkg.provider, slug, versions.items[0].version_id, cluster.id, null); - } - await bindings.core.downloadPackage(pkg.provider, pkg.id, version.version_id, cluster.id, null); } else { diff --git a/apps/oneclient/frontend/src/components/DownloadMods.tsx b/apps/oneclient/frontend/src/components/DownloadMods.tsx index ac6ae984..c7b7a086 100644 --- a/apps/oneclient/frontend/src/components/DownloadMods.tsx +++ b/apps/oneclient/frontend/src/components/DownloadMods.tsx @@ -111,20 +111,10 @@ function DownloadingMods({ mods, setOpen, nextPath }: { mods: ModDataArray; setO const [downloadedMods, setDownloadedMods] = useState(0); const [modName, setModName] = useState(null); const download = useCommandMut(async (mod: ModData) => { - if (isManagedMod(mod)) { - if (mod.dependencies.length > 0) - for (const dependency of mod.dependencies) { - const cluster = await bindings.core.getClusterById(mod.clusterId); - if (!cluster) - continue; - const slug = dependency.project_id ?? ''; - const versions = await bindings.core.getPackageVersions(mod.provider, slug, cluster.mc_version, cluster.mc_loader, 0, 1); - if (versions.items.length !== 0) - await bindings.core.downloadPackage(mod.provider, slug, versions.items[0].version_id, cluster.id, null); - } + if (isManagedMod(mod)) await bindings.core.downloadPackage(mod.provider, mod.id, mod.versionId, mod.clusterId, true); - } - else { await bindings.core.downloadExternalPackage(mod.package, mod.clusterId, null, null); } + else + await bindings.core.downloadExternalPackage(mod.package, mod.clusterId, null, null); }); const { setting } = useSettings();