mirror of
https://github.com/Anvilcraft/modpacktools
synced 2024-11-17 15:31:10 +01:00
Switched from string link to FileOrLink
This commit is contained in:
parent
c4635528cf
commit
363468e0f9
3 changed files with 5 additions and 4 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
}
|
Loading…
Reference in a new issue