diff --git a/app/assets/js/processbuilder.js b/app/assets/js/processbuilder.js index 3e483831..f22937c0 100644 --- a/app/assets/js/processbuilder.js +++ b/app/assets/js/processbuilder.js @@ -269,16 +269,17 @@ class ProcessBuilder { const mdles = this.server.modules let libs = [] - // Locate Forge Libraries + // Locate Forge/Libraries for(let i=0; i 0){ - libs = libs.concat(res) + if(mdles[i].type != null && (mdles[i].type === 'forge-hosted' || mdles[i].type === 'library')){ + let lib = mdles[i] + libs.push(path.join(this.libPath, lib.artifact.path == null ? ag._resolvePath(lib.id, lib.artifact.extension) : lib.artifact.path)) + if(lib.sub_modules != null){ + const res = this._resolveModuleLibraries(lib) + if(res.length > 0){ + libs = libs.concat(res) + } } - break } }