浏览代码

Merge pull request #5413 from hadesanc1/hadesanc1/issue5248

[mod前置数量显示错误]在有前置的mod详情界面,离开再回来,mod前置显示增加
龙腾猫跃 1 年之前
父节点
当前提交
58dfc9a25d
共有 1 个文件被更改,包括 3 次插入 和 1 次删除
  1. 3 1
      Plain Craft Launcher 2/Modules/Minecraft/ModComp.vb

+ 3 - 1
Plain Craft Launcher 2/Modules/Minecraft/ModComp.vb

@@ -1491,7 +1491,9 @@ Retry:
         If Deps.Any Then
         If Deps.Any Then
             For Each DepProject In Deps.Where(Function(id) CompProjectCache.ContainsKey(id)).Select(Function(id) CompProjectCache(id))
             For Each DepProject In Deps.Where(Function(id) CompProjectCache.ContainsKey(id)).Select(Function(id) CompProjectCache(id))
                 For Each File In CompFilesCache(ProjectId)
                 For Each File In CompFilesCache(ProjectId)
-                    If File.RawDependencies.Contains(DepProject.Id) AndAlso DepProject.Id <> ProjectId Then
+                    If File.RawDependencies.Contains(DepProject.Id) AndAlso
+                    DepProject.Id <> ProjectId AndAlso 
+                    Not File.Dependencies.Contains(DepProject.Id) Then
                         File.Dependencies.Add(DepProject.Id)
                         File.Dependencies.Add(DepProject.Id)
                     End If
                     End If
                 Next
                 Next