From 54b0ccfce6588cb3f3adc69c44be37d3e6c499df Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 18 Apr 2026 15:48:44 -0500 Subject: [PATCH] add mod loaders to the merged jars --- build.gradle | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/build.gradle b/build.gradle index 7a8162a82..982ccf12c 100644 --- a/build.gradle +++ b/build.gradle @@ -5,4 +5,24 @@ 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" + String modLoaders = ""; + ((String) gradle.builds_for) + .split(",") + .each + { loader -> + def loaderName = loader.trim() + if (modLoaders != "") + { + modLoaders += "-"; + } + + modLoaders += loaderName; + } + // merged jars are named in the format: + // "DistantHorizons-3.0.1-b-dev-26.1-fabric-neoforge.jar" + archiveClassifier = modLoaders } +