Minecraft launches!! 1.19 at least

This commit is contained in:
Steven Tracey 2022-06-10 09:28:17 -04:00
parent 5a620749d3
commit c136c3f804
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ plugins {
}
group 'tech.nevets.jaml'
version '0.8.2'
version '0.8.3'
def build = 'dev'
repositories {

View File

@ -59,7 +59,7 @@ public class Launcher {
public void launch() {
try {
ArrayList<String> commandArray = parseCommand(jdkVersion, memoryAmount, "1.19", garbageCollection);
ArrayList<String> commandArray = parseCommand(jdkVersion, memoryAmount, ProfileUtils.getActiveProfile().getVersion(), garbageCollection);
StringBuilder sb = new StringBuilder();
@ -102,7 +102,7 @@ public class Launcher {
sb.append(lib);
sb.append(";");
}
sb.setLength(sb.length() - 1);
sb.append("versions/").append(version).append("/").append(version).append(".jar");
} else {
VersionUtils.getLibs();
String[] libs = CacheUtils.getCache(version);
@ -114,7 +114,7 @@ public class Launcher {
sb.append(lib);
sb.append(";");
}
sb.setLength(sb.length() - 1);
sb.append("versions/").append(version).append("/").append(version).append(".jar");
}
ArrayList<String> cmd = new ArrayList<>();
if (jdkVersion == 8) {