diff --git a/build.gradle b/build.gradle index a31e3671..5d45804e 100644 --- a/build.gradle +++ b/build.gradle @@ -75,10 +75,15 @@ dependencies { include "com.terraformersmc.terraform-api:terraform-wood-api-v1:${project.terraformer_api_version}" modCompileOnly "maven.modrinth:farmers-delight-fabric:${project.farmers_delight_version}", { exclude group: "net.fabricmc.fabric-api" } - modCompileOnly "maven.modrinth:iris:${project.iris_version}", { exclude group: "net.fabricmc.fabric-api" } - modCompileOnly "maven.modrinth:sodium:${project.sodium_version}", { exclude group: "net.fabricmc.fabric-api" } - modCompileOnly "maven.modrinth:pehkui:${project.pehkui_version}", { exclude group: "net.fabricmc.fabric-api" } - modCompileOnly "com.github.Virtuoel:KanosConfig:0.4.1", { exclude group: "net.fabricmc.fabric-api" } + if (project.use_pehkui == '1') { + modCompileOnly "maven.modrinth:pehkui:${project.pehkui_version}", { exclude group: "net.fabricmc.fabric-api" } + modCompileOnly "com.github.Virtuoel:KanosConfig:0.4.1", { exclude group: "net.fabricmc.fabric-api" } + } + + if (project.use_sodium == '1') { + modCompileOnly "maven.modrinth:sodium:${project.sodium_version}", { exclude group: "net.fabricmc.fabric-api" } + modCompileOnly "maven.modrinth:iris:${project.iris_version}", { exclude group: "net.fabricmc.fabric-api" } + } if (project.tmi_type == 'emi') { modCompileOnly "dev.emi:emi-fabric:${project.emi_version}" diff --git a/gradle.properties b/gradle.properties index 68f968c9..14c41bd3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,7 +15,7 @@ org.gradle.daemon=false description=Magical Abilities for Mine Little Pony! # Publishing - minecraft_version_range=>=1.20.1 + minecraft_version_range=1.20.1 modrinth_loader_type=fabric modrinth_project_id=9K7RJlvM @@ -29,6 +29,9 @@ org.gradle.daemon=false terraformer_api_version=7.0.0-beta.1 # Testing + use_pehkui=0 + use_sodium=1 + farmers_delight_version=1.4.3 pehkui_version=3.7.8+1.14.4-1.20.1 iris_version=1.6.8+1.20.1