mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 11:42:14 -08:00
Minor modification to allow for base module library detection.
This commit is contained in:
parent
dd7ae6bf56
commit
c74006357e
@ -269,16 +269,17 @@ class ProcessBuilder {
|
|||||||
const mdles = this.server.modules
|
const mdles = this.server.modules
|
||||||
let libs = []
|
let libs = []
|
||||||
|
|
||||||
// Locate Forge Libraries
|
// Locate Forge/Libraries
|
||||||
for(let i=0; i<mdles.length; i++){
|
for(let i=0; i<mdles.length; i++){
|
||||||
if(mdles[i].type != null && mdles[i].type === 'forge-hosted'){
|
if(mdles[i].type != null && (mdles[i].type === 'forge-hosted' || mdles[i].type === 'library')){
|
||||||
let forge = mdles[i]
|
let lib = mdles[i]
|
||||||
libs.push(path.join(this.libPath, forge.artifact.path == null ? ag._resolvePath(forge.id, forge.artifact.extension) : forge.artifact.path))
|
libs.push(path.join(this.libPath, lib.artifact.path == null ? ag._resolvePath(lib.id, lib.artifact.extension) : lib.artifact.path))
|
||||||
const res = this._resolveModuleLibraries(forge)
|
if(lib.sub_modules != null){
|
||||||
|
const res = this._resolveModuleLibraries(lib)
|
||||||
if(res.length > 0){
|
if(res.length > 0){
|
||||||
libs = libs.concat(res)
|
libs = libs.concat(res)
|
||||||
}
|
}
|
||||||
break
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user