[Regression]fix: Legacy Fabric using wrong LWJGL classes

This commit is contained in:
alexytomi
2025-09-21 14:49:51 +08:00
parent 07f23b938b
commit d4592e8c34

View File

@@ -363,7 +363,11 @@ public final class Tools {
javaArgList.addAll(Arrays.asList(getMinecraftJVMArgs(versionId, gamedir)));
javaArgList.add("-cp");
javaArgList.add(launchClassPath + ":" + getLWJGL3ClassPath());
if (launchClassPath.contains("bta-client-")){ // BTADownloadTask.BASE_JSON sets this. Jank.
// BTA for some reason needs this to be last or else it uses the wrong lwjgl
javaArgList.add(launchClassPath + ":" + getLWJGL3ClassPath());
// Legacy Fabric needs this to be first or else it uses the wrong lwjgl
} else javaArgList.add(getLWJGL3ClassPath() + ":" + launchClassPath);
javaArgList.add(versionInfo.mainClass);
javaArgList.addAll(Arrays.asList(launchArgs));