fix: 搜索旧版本 Forge mod 崩溃
This commit is contained in:
@@ -1137,6 +1137,11 @@ Retry:
|
|||||||
If ModrinthThread IsNot Nothing Then ModrinthThread.Join()
|
If ModrinthThread IsNot Nothing Then ModrinthThread.Join()
|
||||||
If Task.IsAborted Then Return
|
If Task.IsAborted Then Return
|
||||||
|
|
||||||
|
'筛除不是 Forge 的 Mod
|
||||||
|
If IsOldForgeRequest Then
|
||||||
|
RawResults = RawResults.Where(Function(p) Not p.ModLoaders.Any() OrElse p.ModLoaders.Contains(CompModLoaderType.Forge)).ToList
|
||||||
|
End If
|
||||||
|
|
||||||
'确保存在结果
|
'确保存在结果
|
||||||
Storage.ErrorMessage = Nothing
|
Storage.ErrorMessage = Nothing
|
||||||
If Not RawResults.Any() Then
|
If Not RawResults.Any() Then
|
||||||
@@ -1167,11 +1172,6 @@ Retry:
|
|||||||
ModrinthThread?.Interrupt()
|
ModrinthThread?.Interrupt()
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
'筛除不是 Forge 的 Mod
|
|
||||||
If IsOldForgeRequest Then
|
|
||||||
RawResults = RawResults.Where(Function(p) Not p.ModLoaders.Any() OrElse p.ModLoaders.Contains(CompModLoaderType.Forge)).ToList
|
|
||||||
End If
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "提取非重复项,存储于 RealResults"
|
#Region "提取非重复项,存储于 RealResults"
|
||||||
|
|||||||
Reference in New Issue
Block a user