diff --git a/src/main/java/pojlib/install/FabricMeta.java b/src/main/java/pojlib/install/FabricMeta.java index 42dba2da..c29a05cd 100644 --- a/src/main/java/pojlib/install/FabricMeta.java +++ b/src/main/java/pojlib/install/FabricMeta.java @@ -14,6 +14,8 @@ public static class FabricVersion { public String version; @SerializedName("stable") public boolean stable; + @SerializedName("separator") + public String separator; } public static FabricVersion[] getVersions() { @@ -21,6 +23,11 @@ public static FabricVersion[] getVersions() { } private static Version getVersionFromFabric(FabricVersion fabric) { + if(fabric.separator.contains("+")) { + // Only used pre-0.11, no use for us + return null; + } + String[] verName = fabric.version.split("\\."); if(verName.length < 3) { return null; @@ -44,7 +51,7 @@ public static FabricVersion getLatestVersion() { Version latestVer = getVersionFromFabric(latest); if(newVer == null || latestVer == null) - return null; + continue; if(latestVer.major < newVer.major) { latest = version;