Only setup local mods on forge

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel
2021-09-20 01:00:38 +08:00
parent 6b1324fc5e
commit fa105469f4

View File

@@ -149,9 +149,12 @@ public abstract class LoomGradleExtensionApiImpl implements LoomGradleExtensionA
baseName -> new LaunchProviderSettings(project, baseName));
this.forgeLocalMods = project.container(ForgeLocalMod.class,
baseName -> new ForgeLocalMod(project, baseName, new ArrayList<>()));
localMods(mod -> {
mod.create("main").add("main");
});
if (isForge()) {
localMods(mod -> {
mod.create("main").add("main");
});
}
}
@Override