ソースを参照

Merge pull request #7906 from MoYuan-CN/fix/7904

fix(ModDownload): 跟进新的 NeoForge 命名方式以正确识别测试版
龙腾猫跃 9 ヶ月 前
親
コミット
4ad3acb8ff
1 ファイル変更、1 行追加、1 行削除
  1. 1 1
      Plain Craft Launcher 2/Modules/Minecraft/ModDownload.vb

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

@@ -844,7 +844,7 @@
         Public Sub New(ApiName As String)
         Public Sub New(ApiName As String)
             IsNeoForge = True
             IsNeoForge = True
             Me.ApiName = ApiName
             Me.ApiName = ApiName
-            IsBeta = ApiName.Contains("beta")
+            IsBeta = ApiName.Contains("beta") OrElse ApiName.Contains("alpha")
             If ApiName.Contains("1.20.1") Then '1.20.1-47.1.99
             If ApiName.Contains("1.20.1") Then '1.20.1-47.1.99
                 VersionName = ApiName.Replace("1.20.1-", "")
                 VersionName = ApiName.Replace("1.20.1-", "")
                 Version = New Version("19." & VersionName)
                 Version = New Version("19." & VersionName)