Explorar o código

fix: 官方源总是 Fallback 到 BMCLAPI

Pigeon0v0 %!s(int64=2) %!d(string=hai) anos
pai
achega
6efaa09616
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      Plain Craft Launcher 2/Modules/Minecraft/ModDownload.vb

+ 5 - 1
Plain Craft Launcher 2/Modules/Minecraft/ModDownload.vb

@@ -993,11 +993,15 @@
                 Inherit = Inherit.Replace(".0", "")
                 Inherit = Inherit.Replace(".0", "")
                 Dim Entry = New DlNeoForgeVersionEntry
                 Dim Entry = New DlNeoForgeVersionEntry
                 If Loader.Input IsNot Nothing Then
                 If Loader.Input IsNot Nothing Then
-                    If Inherit Is Loader.Input.ToString() Then
+                    If Inherit.Contains(Loader.Input.ToString().Replace("1.", "")) Then
                         Entry = New DlNeoForgeVersionEntry With {.Version = rawVersion, .Inherit = Inherit, .IsBeta = IsBeta, .StdVersion = StdVersion}
                         Entry = New DlNeoForgeVersionEntry With {.Version = rawVersion, .Inherit = Inherit, .IsBeta = IsBeta, .StdVersion = StdVersion}
+                        Hint(Entry.StdVersion)
+                        Log(Entry.StdVersion)
                         Versions.Add(Entry)
                         Versions.Add(Entry)
                         Continue For
                         Continue For
                     Else
                     Else
+                        Hint("匹配失败: " & Inherit & " 但是请求的版本是 " & Loader.Input.ToString())
+                        Log("匹配失败: " & Inherit & " 但是请求的版本是 " & Loader.Input.ToString())
                         Continue For
                         Continue For
                     End If
                     End If
                 End If
                 End If