Add version.jar to cp until 1.17.

pull/222/head
Daniel Scalzi 2021-08-26 20:19:25 -04:00
parent 168b4431ae
commit f6f8a7ed3c
No known key found for this signature in database
GPG Key ID: 9E3E2AFE45328AA5
1 changed files with 7 additions and 4 deletions

View File

@ -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)