From 5a25ba6663e8d36fc3a4ee65b8a8f6354efe042c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=9E=E5=BA=90?= <109708109+CiiLu@users.noreply.github.com> Date: Fri, 2 Jan 2026 16:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20NeoForge=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E8=A7=84=E5=88=99=20(#5110)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves #5109 --- .../download/neoforge/NeoForgeOfficialVersionList.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/neoforge/NeoForgeOfficialVersionList.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/neoforge/NeoForgeOfficialVersionList.java index 4e98cce3d..2e471621e 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/neoforge/NeoForgeOfficialVersionList.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/neoforge/NeoForgeOfficialVersionList.java @@ -63,7 +63,13 @@ public final class NeoForgeOfficialVersionList extends VersionList= 26) { + int separator = version.indexOf('+'); + mcVersion = separator < 0 ? ver : ver + "-" + version.substring(separator + 1); + } else { + mcVersion = "1." + ver; + } } } catch (RuntimeException e) { LOG.warning(String.format("Cannot parse NeoForge version %s for cracking its mc version.", version), e);