From b8c512c04c49ccb0ae60b3472682212814e3b3fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=B3=E7=B3=96=E9=85=B8=E8=8F=8C?= Date: Thu, 11 Jul 2024 10:36:32 +0800 Subject: [PATCH] Update ModModpack.vb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将原先使用的.Remove方法替换为.Replace方法。 --- Plain Craft Launcher 2/Modules/Minecraft/ModModpack.vb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plain Craft Launcher 2/Modules/Minecraft/ModModpack.vb b/Plain Craft Launcher 2/Modules/Minecraft/ModModpack.vb index 43e8e70..12284ab 100644 --- a/Plain Craft Launcher 2/Modules/Minecraft/ModModpack.vb +++ b/Plain Craft Launcher 2/Modules/Minecraft/ModModpack.vb @@ -195,7 +195,7 @@ Retry: End If Try Log("[ModPack] 整合包 Forge 版本:" & Id) - ForgeVersion = Id.Remove(0, 6) + ForgeVersion = Id.Replace("forge-", "") Exit For Catch ex As Exception Log(ex, "读取整合包 Forge 版本失败:" & Id) @@ -204,7 +204,7 @@ Retry: 'NeoForge 指定 Try Log("[ModPack] 整合包 NeoForge 版本:" & Id) - NeoForgeVersion = Id.Remove(0, 9) + NeoForgeVersion = Id.Replace("neoforge-", "") Exit For Catch ex As Exception Log(ex, "读取整合包 NeoForge 版本失败:" & Id) @@ -213,7 +213,7 @@ Retry: 'Fabric 指定 Try Log("[ModPack] 整合包 Fabric 版本:" & Id) - FabricVersion = Id.Remove(0, 7) + FabricVersion = Id.Replace("fabric-", "") Exit For Catch ex As Exception Log(ex, "读取整合包 Fabric 版本失败:" & Id)