diff --git a/components/handler.js b/components/handler.js index 722663a..604e1c6 100644 --- a/components/handler.js +++ b/components/handler.js @@ -428,9 +428,11 @@ class Handler { // If a downloads property exists, we modify the inital forge entry to include ${jarEnding} so ForgeWrapper can work properly. // If it doesn't, we simply remove it since we're already providing the universal jar. if (json.libraries[0].downloads) { - json.libraries[0].name = json.libraries[0].name + `:${jarEnding}` - json.libraries[0].downloads.artifact.path = json.libraries[0].downloads.artifact.path.replace('.jar', `-${jarEnding}.jar`) - json.libraries[0].downloads.artifact.url = 'https://files.minecraftforge.net/maven/' + json.libraries[0].downloads.artifact.path + if (json.libraries[0].name.includes('minecraftforge')) { + json.libraries[0].name = json.libraries[0].name + `:${jarEnding}` + json.libraries[0].downloads.artifact.path = json.libraries[0].downloads.artifact.path.replace('.jar', `-${jarEnding}.jar`) + json.libraries[0].downloads.artifact.url = 'https://files.minecraftforge.net/maven/' + json.libraries[0].downloads.artifact.path + } } else { delete json.libraries[0] } diff --git a/components/launcher.js b/components/launcher.js index 2636345..5e60570 100644 --- a/components/launcher.js +++ b/components/launcher.js @@ -23,9 +23,9 @@ class MCLCore extends EventEmitter { }, fw: { baseUrl: 'https://github.com/ZekerZhayard/ForgeWrapper/releases/download/', - version: '1.5.1', - sh1: '90104e9aaa8fbedf6c3d1f6d0b90cabce080b5a9', - size: 29892, + version: '1.5.2', + sh1: '6930ac286c079a9df5b766974020ef7ad1fc5d3b', + size: 34217, ...this.options.overrides ? this.options.overrides.fw : undefined