Explorar el Código

Merge pull request #5413 from hadesanc1/hadesanc1/issue5248

[mod前置数量显示错误]在有前置的mod详情界面,离开再回来,mod前置显示增加
龙腾猫跃 hace 1 año
padre
commit
58dfc9a25d
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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
             For Each DepProject In Deps.Where(Function(id) CompProjectCache.ContainsKey(id)).Select(Function(id) CompProjectCache(id))
                 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)
                     End If
                 Next