mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 04:07:01 -05:00
Search for injected interfaces in the client sourceset by default. (#731)
This commit is contained in:
@@ -157,6 +157,7 @@ public abstract sealed class MinecraftSourceSets permits MinecraftSourceSets.Sin
|
||||
|
||||
// Called during evaluation, when the loom extension method is called.
|
||||
private void evaluate(Project project) {
|
||||
final LoomGradleExtension extension = LoomGradleExtension.get(project);
|
||||
createSourceSets(project);
|
||||
|
||||
// Combined extends from the 2 environments.
|
||||
@@ -217,6 +218,8 @@ public abstract sealed class MinecraftSourceSets permits MinecraftSourceSets.Sin
|
||||
// The client only sources to the combined sources jar.
|
||||
jar.from(clientOnlySourceSet.getAllSource());
|
||||
});
|
||||
|
||||
extension.getInterfaceInjection().getInterfaceInjectionSourceSets().add(clientOnlySourceSet);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user