fix setting a different game version for parchment
All checks were successful
Publish to snapshot maven / build (push) Successful in 2m0s
All checks were successful
Publish to snapshot maven / build (push) Successful in 2m0s
This commit is contained in:
parent
18143913b8
commit
64adbe82a5
|
@ -7,7 +7,7 @@ plugins {
|
|||
}
|
||||
|
||||
group = "dev.frogmc"
|
||||
version = "0.0.1-alpha.24"
|
||||
version = "0.0.1-alpha.25" + ("+local".takeUnless { project.hasProperty("FrogMCSnapshotsMavenPassword") } ?: "")
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
|
|
|
@ -55,7 +55,7 @@ abstract class MinecraftConfiguration @Inject constructor(
|
|||
cacheDir.resolve("net/minecraft/client/${version.get()}/client-${version.get()}.txt")
|
||||
).reverse(),
|
||||
ParchmentProvider.getParchment(
|
||||
version.get(),
|
||||
conf.gameVersion.get(),
|
||||
cacheDir.resolve("org/parchmentmc/parchment/${conf.gameVersion.get()}/${conf.version.get()}")
|
||||
)
|
||||
).renameDstNamespace(targetNamespace)
|
||||
|
@ -74,7 +74,7 @@ abstract class MinecraftConfiguration @Inject constructor(
|
|||
targetNamespace = "parchment"
|
||||
|
||||
return@provider ParchmentProvider.getParchment(
|
||||
version.get(),
|
||||
conf.gameVersion.get(),
|
||||
cacheDir.resolve("org/parchmentmc/parchment/${conf.gameVersion.get()}/${conf.version.get()}")
|
||||
).renameNamespaces(Constants.MOJMAP_NAMESPACE, "parchment")
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ abstract class MinecraftConfiguration @Inject constructor(
|
|||
return project.provider {
|
||||
val conf = objects.newInstance(VersionConfiguration::class.java)
|
||||
action.execute(conf)
|
||||
if (!conf.version.isPresent) {
|
||||
if (!conf.version.isPresent()) {
|
||||
error("No version provided for quilt mappings!")
|
||||
}
|
||||
mappingsName = "quilt-mappings(${conf.version.get()})"
|
||||
|
|
Loading…
Reference in a new issue