From 5f7cc54faf2764128d16f53018b4be3593dc322e Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 25 Mar 2023 13:44:14 -0500 Subject: [PATCH] forge: support 1.5.x install_profile.json --- src/main/java/me/itzg/helpers/forge/ForgeInstaller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/itzg/helpers/forge/ForgeInstaller.java b/src/main/java/me/itzg/helpers/forge/ForgeInstaller.java index 28d94894..39c023cb 100644 --- a/src/main/java/me/itzg/helpers/forge/ForgeInstaller.java +++ b/src/main/java/me/itzg/helpers/forge/ForgeInstaller.java @@ -179,7 +179,7 @@ private VersionPair extractVersion(Path forgeInstaller) throws IOException { // such as "1.7.10-Forge10.13.4.1614-1.7.10" final String[] idParts = idNode.asText().split("-"); - if (idParts.length == 3) { + if (idParts.length >= 2) { final Matcher m = OLD_FORGE_ID_VERSION.matcher(idParts[1]); if (m.matches()) { return new VersionPair(idParts[0], m.group(1));