VersionJar is not needed. (#26)

This commit is contained in:
Daniel Scalzi
2019-03-06 22:47:45 -05:00
parent 90818245f3
commit 448440a604
7 changed files with 17 additions and 30 deletions

View File

@@ -1335,16 +1335,6 @@
"url": ""
}
},
{
"id": "1.13.2-forge-25.0.63",
"name": "Minecraft Forge (version.jar)",
"type": "VersionJar",
"artifact": {
"size": 16089640,
"MD5": "0d20673fc03f9c6a60279146ee1b1a14",
"url": ""
}
},
{
"id": "1.13.2-forge-25.0.63",
"name": "Minecraft Forge (version.json)",

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

View File

@@ -1407,10 +1407,10 @@ class AssetGuard extends EventEmitter {
const type = ob.getType()
if(type === DistroManager.Types.ForgeHosted || type === DistroManager.Types.Forge){
if(Util.mcVersionAtLeast('1.13', server.getMinecraftVersion())){
// Read Manifest
for(let sub of ob.getSubModules()){
if(sub.getType() === DistroManager.Types.VersionManifest){
const versionFile = path.join(self.commonPath, 'versions', sub.getIdentifier(), `${sub.getIdentifier()}.json`)
resolve(JSON.parse(fs.readFileSync(versionFile, 'utf-8')))
resolve(JSON.parse(fs.readFileSync(sub.getArtifact().getPath(), 'utf-8')))
return
}
}

View File

@@ -190,9 +190,6 @@ class Module {
case exports.Types.VersionManifest:
this.artifact.path = path.join(ConfigManager.getCommonDirectory(), 'versions', this.getIdentifier(), `${this.getIdentifier()}.json`)
break
case exports.Types.VersionJar:
this.artifact.path = path.join(ConfigManager.getCommonDirectory(), 'versions', this.getIdentifier(), `${this.getIdentifier()}.jar`)
break
case exports.Types.File:
default:
this.artifact.path = path.join(ConfigManager.getInstanceDirectory(), serverid, pth)