Attempt to allow mojang mappings

This commit is contained in:
Johannes Frohnmeyer 2022-07-24 12:12:32 +00:00
parent 42128493b4
commit 9ddf9e3d9f
1 changed files with 5 additions and 1 deletions

View File

@ -177,7 +177,11 @@ allprojects {
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.minecraft_version}+${project.yarn_mappings}:v2"
if (project.hasProperty("yarn_mappings")) {
mappings "net.fabricmc:yarn:${project.minecraft_version}+${project.yarn_mappings}:v2"
} else {
mappings loom.officialMojangMappings()
}
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
testmodImplementation sourceSets.main.output