Multiple changes

- Force to use LaunchWrapper 2.0 or above, to fix java9 compatibility issue.
- Remove Regal libraries.
- Update version name
This commit is contained in:
khanhduytran0 2020-10-12 19:57:36 +07:00
parent d606d25bea
commit 11f1e1b5c9
5 changed files with 7 additions and 5 deletions

View file

@ -640,8 +640,12 @@ public final class Tools
for (DependentLibrary lib : customVer.libraries) {
if (lib.name.startsWith(optifineLib)) {
customVer.optifineLib = lib;
break;
}
} else if (lib.name.startsWith("net.minecraft:launchwrapper")) {
int versionIndex = lib.name.lastIndexOf(":");
if (lib.name.substring(versionIndex + 1).startsWith("1.")) {
lib.name = lib.name.substring(0, versionIndex + 1) + "2.0";
}
}
}
if (customVer.inheritsFrom == null) {
return customVer;