From 18cba4b4647b284d9ad61f426a42cd3259df7224 Mon Sep 17 00:00:00 2001 From: Zkitefly Date: Tue, 20 Aug 2024 06:46:03 +0000 Subject: [PATCH] Fix --- Plain Craft Launcher 2/Modules/Minecraft/ModMinecraft.vb | 6 +++--- .../Pages/PageDownload/PageDownloadClient.xaml.vb | 1 - .../Pages/PageDownload/PageDownloadInstall.xaml.vb | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Plain Craft Launcher 2/Modules/Minecraft/ModMinecraft.vb b/Plain Craft Launcher 2/Modules/Minecraft/ModMinecraft.vb index af8c1aca..ccc0e3b4 100644 --- a/Plain Craft Launcher 2/Modules/Minecraft/ModMinecraft.vb +++ b/Plain Craft Launcher 2/Modules/Minecraft/ModMinecraft.vb @@ -1031,11 +1031,11 @@ ExitDataLoad: Name = Name.ToLower If Name.StartsWith("2.0") OrElse Name.StartsWith("2point0") Then Dim Teg = "" - If Name.StartsWith("red") Then + If Name.EndsWith("red") Then Teg = "(红色版本)" - ElseIf Name.StartsWith("blue") Then + ElseIf Name.EndsWith("blue") Then Teg = "(蓝色版本)" - ElseIf Name.StartsWith("purple") Then + ElseIf Name.EndsWith("purple") Then Teg = "(紫色版本)" End If Return Teg & "这个秘密计划了两年的更新将游戏推向了一个新高度!" diff --git a/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadClient.xaml.vb b/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadClient.xaml.vb index 46dd8e60..6e703b29 100644 --- a/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadClient.xaml.vb +++ b/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadClient.xaml.vb @@ -37,7 +37,6 @@ Select Case Version("id").ToString.ToLower Case "2point0_blue", "2point0_red", "2point0_purple", "2.0_blue", "2.0_red", "2.0_purple", "2.0" Type = "愚人节版" - Version("id") = Version("id").ToString().Replace("point", ".") Version("type") = "special" Version.Add("lore", GetMcFoolName(Version("id"))) Case "20w14infinite", "20w14∞" diff --git a/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadInstall.xaml.vb b/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadInstall.xaml.vb index 67077670..883f3381 100644 --- a/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadInstall.xaml.vb +++ b/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadInstall.xaml.vb @@ -612,7 +612,6 @@ Select Case Version("id").ToString.ToLower Case "2point0_blue", "2point0_red", "2point0_purple", "2.0_blue", "2.0_red", "2.0_purple", "2.0" Type = "愚人节版" - Version("id") = Version("id").ToString().Replace("point", ".") Version("type") = "special" Version.Add("lore", GetMcFoolName(Version("id"))) Case "20w14infinite", "20w14∞"