Просмотр исходного кода

[mod前置数量显示错误]在有前置的mod详情界面,离开再回来,mod前置显示增加
Fixes #5248

hadesanc1 1 год назад
Родитель
Сommit
96c35a3bed
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      Plain Craft Launcher 2/Modules/Minecraft/ModComp.vb

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

@@ -1481,7 +1481,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