ForgeWrapper 1.5.2

This commit is contained in:
Pierce 2021-08-21 16:06:21 -07:00
parent 0ad9cd7d53
commit a0fc6712bd
2 changed files with 8 additions and 6 deletions

View file

@ -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]
}

View file

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