fix forgix running on only a single modloader

This commit is contained in:
James Seibel
2026-05-12 07:28:59 -05:00
parent d8e7325044
commit fbbcd1b95b
+7 -1
View File
@@ -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