fix(download): 未适配 Neoforge 新版本命名规则导致找不到 26.1 匹配的 Neoforge

This commit is contained in:
wyc-26
2026-03-26 17:46:11 +08:00
parent 6a140ce5b9
commit c89ebf3b19
@@ -858,7 +858,7 @@
VersionName = ApiName
Version = New Version(ApiName.BeforeFirst("-"))
If Version.Major >= 24 Then
Inherit = Version.ToString.Replace(".0", "")
Inherit = Version.Major & "." & Version.Minor
Else
Inherit = "1." & Version.Major & If(Version.Minor > 0, "." & Version.Minor, "")
End If