Skip to content

Commit 0960cc1

Browse files
suppress warnings and optionalprop parchment
1 parent 63e314c commit 0960cc1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ loom {
3434

3535
dependencies {
3636
minecraft("com.mojang:minecraft:${property("minecraft_version")}")
37+
@Suppress("UnstableApiUsage")
3738
mappings(loom.layered {
3839
officialMojangMappings()
39-
parchment("org.parchmentmc.data:parchment-${property("minecraft_version")}:${property("parchment_version")}@zip")
40+
optionalProp("${property("parchment_version")}") {
41+
parchment("org.parchmentmc.data:parchment-${property("minecraft_version")}:$it@zip")
42+
}
4043
optionalProp("${property("yalmm_version")}") {
4144
mappings("dev.lambdaurora:yalmm-mojbackward:${property("minecraft_version")}+build.$it")
4245
}

0 commit comments

Comments
 (0)