Support snapshots in the mcBase variable

This commit is contained in:
Username404-59 2021-05-03 15:20:11 +02:00
parent 0bae4655f9
commit 31d96c4dbb
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

@ -89,7 +89,10 @@ subprojects {
}
val kotlinVer = rootProject.property("kotlin_stdlib_version").toString() + ".0"
val mcBase: String = rootProject.architectury.minecraft.dropLast(2)
val mcBase: String = rootProject.architectury.minecraft.let {
if (it.startsWith("1.")) it.dropLast(2) else it
}
allprojects {
/** configurations.all {
resolutionStrategy {