From fbbcd1b95b7f4c2f14a031b2c46069da7f172d13 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Tue, 12 May 2026 07:28:59 -0500 Subject: [PATCH] fix forgix running on only a single modloader --- build.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 982ccf12c..af874eef2 100644 --- a/build.gradle +++ b/build.gradle @@ -4,10 +4,10 @@ plugins { } forgix { - autoRun = true // add the mod loaders to the end of the jar // put together in the format: "a", "a-b", "a-b-c" + int loaderCount = 0; String modLoaders = ""; ((String) gradle.builds_for) .split(",") @@ -20,7 +20,13 @@ forgix { } modLoaders += loaderName; + + loaderCount++; } + + // run if there are multiple launchers that need merging + autoRun = (loaderCount > 1); + // merged jars are named in the format: // "DistantHorizons-3.0.1-b-dev-26.1-fabric-neoforge.jar" archiveClassifier = modLoaders