From c6221e2afe3d6eec79f94806b3c28704944c331f Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Thu, 26 Aug 2021 20:19:25 -0400 Subject: [PATCH] Add version.jar to cp until 1.17. --- app/assets/js/processbuilder.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/assets/js/processbuilder.js b/app/assets/js/processbuilder.js index 75f6e3a1..e3b52c4c 100644 --- a/app/assets/js/processbuilder.js +++ b/app/assets/js/processbuilder.js @@ -670,10 +670,13 @@ class ProcessBuilder { classpathArg(mods, tempNativePath){ let cpArgs = [] - // Add the version.jar to the classpath. - // TODO Needs to be removed for 1.17+, need to test earlier versions. - // const version = this.versionData.id - // cpArgs.push(path.join(this.commonDir, 'versions', version, version + '.jar')) + if(!Util.mcVersionAtLeast('1.17', this.server.getMinecraftVersion())) { + // Add the version.jar to the classpath. + // Must not be added to the classpath for Forge 1.17+. + const version = this.versionData.id + cpArgs.push(path.join(this.commonDir, 'versions', version, version + '.jar')) + } + if(this.usingLiteLoader){ cpArgs.push(this.llPath)