diff options
Diffstat (limited to 'common/build.gradle.kts')
-rw-r--r-- | common/build.gradle.kts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/build.gradle.kts b/common/build.gradle.kts index fb79bd1..f725a17 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -7,7 +7,8 @@ base { } architectury { - common("fabric", "forge") + val enabledLoaders = rootProject.properties["loaders"].toString().split(",").map { it.trim() } + common(enabledLoaders) } loom { @@ -19,7 +20,9 @@ loom { dependencies { minecraft(libs.minecraft) mappings(loom.layered { - mappings("org.quiltmc:quilt-mappings:${libs.versions.minecraft.get()}+build.${libs.versions.quilt.mappings.get()}:intermediary-v2") + val qm = libs.versions.quilt.mappings.get() + if (qm != "0") + mappings("org.quiltmc:quilt-mappings:${libs.versions.minecraft.get()}+build.${libs.versions.quilt.mappings.get()}:intermediary-v2") officialMojangMappings() }) modImplementation(libs.fabric.loader) |