Fix unable to launch 1.13 with Rift

This commit is contained in:
huangyuhui
2018-08-17 21:51:25 +08:00
parent 089ae1e313
commit 3a851b7f1a

View File

@@ -151,8 +151,9 @@ public class Version implements Comparable<Version>, Validation {
}
protected Version resolve(VersionProvider provider, Set<String> resolvedSoFar) throws VersionNotFoundException {
if (inheritsFrom == null)
return this;
if (inheritsFrom == null) {
return this.jar == null ? this.setJar(id) : this;
}
// To maximize the compatibility.
if (!resolvedSoFar.add(id)) {