From 6efaa0961658575e1b639aa17a73c67f87798d4f Mon Sep 17 00:00:00 2001 From: Pigeon0v0 Date: Thu, 27 Jun 2024 08:04:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=98=E6=96=B9=E6=BA=90=E6=80=BB?= =?UTF-8?q?=E6=98=AF=20Fallback=20=E5=88=B0=20BMCLAPI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plain Craft Launcher 2/Modules/Minecraft/ModDownload.vb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Plain Craft Launcher 2/Modules/Minecraft/ModDownload.vb b/Plain Craft Launcher 2/Modules/Minecraft/ModDownload.vb index 257551e..6a8e4b2 100644 --- a/Plain Craft Launcher 2/Modules/Minecraft/ModDownload.vb +++ b/Plain Craft Launcher 2/Modules/Minecraft/ModDownload.vb @@ -993,11 +993,15 @@ Inherit = Inherit.Replace(".0", "") Dim Entry = New DlNeoForgeVersionEntry 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} + Hint(Entry.StdVersion) + Log(Entry.StdVersion) Versions.Add(Entry) Continue For Else + Hint("匹配失败: " & Inherit & " 但是请求的版本是 " & Loader.Input.ToString()) + Log("匹配失败: " & Inherit & " 但是请求的版本是 " & Loader.Input.ToString()) Continue For End If End If