Fix missing entry for NeoForge in the jar resolution step (#4)

* add neoforge support

* move extension from closure to action to better support kotlin dsl

* add neoforge to the readme.md

* add missing entry in plugin apply method for neoforge jar resolution
This commit is contained in:
KernelPanic
2024-06-02 11:21:58 -04:00
committed by GitHub
parent b85a85195e
commit 1569a66e00
2 changed files with 13 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ fusioner {
// NeoForge Project
neoforge {
projectName = "NeoForge" // The name of the project that contains the fabric code
projectName = "NeoForge" // The name of the project that contains the neoforge code
inputTaskName = "remapJar" // The name of the build task for the neoforge project
// OR
// inputFile = "NeoForge/build/libs/MyMod-NeoForge-1.0.jar" // Use a custom jar input

View File

@@ -61,6 +61,18 @@ public class ModFusionerPlugin implements Plugin<Project> {
);
}
if (modFusionerExtension.getNeoforgeConfiguration() != null
&& modFusionerExtension.getNeoforgeConfiguration().inputTaskName != null
&& !modFusionerExtension.getNeoforgeConfiguration().inputTaskName.isEmpty()) {
if (ccc.getName().equals(modFusionerExtension.getNeoforgeConfiguration().getProjectName()))
resolveInputTasks(
ccc,
modFusionerExtension.getNeoforgeConfiguration().getInputTaskName(),
modFusionerExtension.getNeoforgeConfiguration().getProjectName(),
task
);
}
if (modFusionerExtension.getFabricConfiguration() != null
&& modFusionerExtension.getFabricConfiguration().inputTaskName != null
&& !modFusionerExtension.getFabricConfiguration().inputTaskName.isEmpty()) {