diff options
Diffstat (limited to 'test-common')
-rw-r--r-- | test-common/build.gradle.kts | 7 |
1 files changed, 5 insertions, 2 deletions
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) |