From 4f1bba3f51de1f544b239e7eac740eab5832dc5b Mon Sep 17 00:00:00 2001 From: isXander Date: Tue, 16 May 2023 17:04:51 +0100 Subject: 1.20 --- test-common/build.gradle.kts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test-common') diff --git a/test-common/build.gradle.kts b/test-common/build.gradle.kts index 7e14666..6bdfb0a 100644 --- a/test-common/build.gradle.kts +++ b/test-common/build.gradle.kts @@ -3,7 +3,8 @@ plugins { } architectury { - common("fabric", "forge") + val enabledLoaders = rootProject.properties["loaders"].toString().split(",").map { it.trim() } + common(enabledLoaders) } loom { @@ -15,7 +16,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) -- cgit