mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
Fix dependencies getting installed when they exist
This commit is contained in:
parent
e78eaf01e8
commit
4f2835ae34
1 changed files with 2 additions and 0 deletions
|
@ -599,6 +599,8 @@ Result<IndexInstallList> Index::getInstallList(IndexItemHandle item) const {
|
|||
|
||||
if (dep.importance == ModMetadata::Dependency::Importance::Suggested) continue;
|
||||
|
||||
if (Loader::get()->isModInstalled(dep.id)) continue;
|
||||
|
||||
// check if this dep is available in the index
|
||||
if (auto depItem = this->getItem(dep.id, dep.version)) {
|
||||
if (!depItem->getAvailablePlatforms().count(GEODE_PLATFORM_TARGET)) {
|
||||
|
|
Loading…
Reference in a new issue