diff --git a/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadClient.xaml.vb b/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadClient.xaml.vb index 519b8620..83bb44e0 100644 --- a/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadClient.xaml.vb +++ b/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadClient.xaml.vb @@ -44,6 +44,14 @@ Version("type") = "special" Version.Add("lore", GetMcFoolName(Version("id"))) End Select + '所有4月1日发布的版本可视为愚人节版,但不改动版本描述 + Select Case Version("releaseDate").Value(Of Date).ToString("MM'/'dd") + Case "04/01" + If Not Version("type") == "special" Then + Type = "愚人节版" + Version("type") = "special" + End If + End Select Case "special" '已被处理的愚人节版 Type = "愚人节版" diff --git a/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadInstall.xaml.vb b/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadInstall.xaml.vb index d7ef0bc9..cdbbdc9c 100644 --- a/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadInstall.xaml.vb +++ b/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadInstall.xaml.vb @@ -555,6 +555,14 @@ Version("type") = "special" Version.Add("lore", GetMcFoolName(Version("id"))) End Select + '所有4月1日发布的版本视为愚人节版,但不改动版本描述 + Select Case Version("releaseDate").Value(Of Date).ToString("MM'/'dd") + Case "04/01" + If Not Version("type") == "special" Then + Type = "愚人节版" + Version("type") = "special" + End If + End Select Case "special" '已被处理的愚人节版 Type = "愚人节版"