4
0
Fork 0
mirror of https://github.com/Anvilcraft/modpacktools synced 2024-06-10 14:39:30 +02:00

Switched from string link to FileOrLink

This commit is contained in:
Timo Ley 2020-07-27 23:16:49 +02:00
parent c4635528cf
commit 363468e0f9
3 changed files with 5 additions and 4 deletions

View file

@ -22,7 +22,7 @@ dependencies {
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.8'
//Other
compile 'com.github.Anvilcraft:addonscript-java:123e1f49cb'
compile 'com.github.Anvilcraft:addonscript-java:30c7ee114a'
compile 'com.squareup.okhttp3:okhttp:4.8.0'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'

View file

@ -48,7 +48,7 @@ fun convertAStoManifest(addonscript: ASWrapper): ManifestLinksPair {
manifest.files.add(f);
}
} else if (rel.options.contains("required")) {
ml.links.put(file.link, file.file.installer)
ml.links.put(file.get(), file.file.installer)
}
}
}
@ -67,7 +67,7 @@ fun convertAStoManifest(addonscript: ASWrapper): ManifestLinksPair {
manifest.files.add(f);
}
} else {
ml.links.put(file.link, file.file.installer)
ml.links.put(file.get(), file.file.installer)
}
}
ml.manifest = manifest

View file

@ -1,10 +1,11 @@
package ley.anvil.modpacktools.util
import ley.anvil.addonscript.curse.ManifestJSON
import ley.anvil.addonscript.wrapper.FileOrLink
class ManifestLinksPair {
var manifest: ManifestJSON? = null
var links: MutableMap<String, String> = HashMap()
var links: MutableMap<FileOrLink, String> = HashMap()
}