Update Plain Craft Launcher 2/Modules/Minecraft/ModDownload.vb

Co-authored-by: 薄奚梦灵 <boximengling@outlook.com>
This commit is contained in:
墨渊
2026-01-02 10:27:24 +08:00
committed by GitHub
co-authored by 薄奚梦灵
parent bd4498cec4
commit 3ec91e1b0b
@@ -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") Or ApiName.Contains("alpha") 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)