Fix dependencies getting installed when they exist

This commit is contained in:
altalk23 2023-09-04 22:07:12 +03:00
parent e78eaf01e8
commit 4f2835ae34

View file

@ -599,6 +599,8 @@ Result<IndexInstallList> Index::getInstallList(IndexItemHandle item) const {
if (dep.importance == ModMetadata::Dependency::Importance::Suggested) continue; if (dep.importance == ModMetadata::Dependency::Importance::Suggested) continue;
if (Loader::get()->isModInstalled(dep.id)) continue;
// check if this dep is available in the index // check if this dep is available in the index
if (auto depItem = this->getItem(dep.id, dep.version)) { if (auto depItem = this->getItem(dep.id, dep.version)) {
if (!depItem->getAvailablePlatforms().count(GEODE_PLATFORM_TARGET)) { if (!depItem->getAvailablePlatforms().count(GEODE_PLATFORM_TARGET)) {