Add version.jar to cp until 1.17.

This commit is contained in:
Daniel Scalzi 2021-08-26 20:19:25 -04:00
parent f0121e9597
commit c6221e2afe
No known key found for this signature in database
GPG Key ID: D18EA3FB4B142A57

View File

@ -670,10 +670,13 @@ class ProcessBuilder {
classpathArg(mods, tempNativePath){ classpathArg(mods, tempNativePath){
let cpArgs = [] let cpArgs = []
if(!Util.mcVersionAtLeast('1.17', this.server.getMinecraftVersion())) {
// Add the version.jar to the classpath. // Add the version.jar to the classpath.
// TODO Needs to be removed for 1.17+, need to test earlier versions. // Must not be added to the classpath for Forge 1.17+.
// const version = this.versionData.id const version = this.versionData.id
// cpArgs.push(path.join(this.commonDir, 'versions', version, version + '.jar')) cpArgs.push(path.join(this.commonDir, 'versions', version, version + '.jar'))
}
if(this.usingLiteLoader){ if(this.usingLiteLoader){
cpArgs.push(this.llPath) cpArgs.push(this.llPath)