4
0
Fork 0
mirror of https://github.com/Anvilcraft/modpacktools synced 2024-05-19 20:04:07 +02:00

Fix ASConverter bug

This commit is contained in:
Timo Ley 2020-08-09 11:50:42 +02:00
parent 25f4848ae9
commit f03fb37cb4

View file

@ -44,15 +44,13 @@ fun convertAStoManifest(addonscript: ASWrapper, shouldAddLink: (ASWrapper.Relati
if(file.file.installer == "internal.jar") {
println("internal.jar is not supported on Curse")
continue
} else if(file.isArtifact) {
} else if(file.isArtifact && file.artifact.isCurseforge) {
val art = file.artifact
if(art.isCurseforge) {
val f = ManifestJSON.File()
f.fileID = art.fileID
f.projectID = art.projectID
f.required = "required" in rel.options
manifest.files.add(f)
}
val f = ManifestJSON.File()
f.fileID = art.fileID
f.projectID = art.projectID
f.required = "required" in rel.options
manifest.files.add(f)
} else if(shouldAddLink(rel)) {
ml.links[file.get()] = file.file.installer
}