From 559ead49e12241a4c32a104289c1c73bddcf8607 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Sat, 1 Oct 2022 09:55:03 +0100 Subject: [PATCH] Search for injected interfaces in the client sourceset by default. (#731) --- .../configuration/providers/minecraft/MinecraftSourceSets.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/fabricmc/loom/configuration/providers/minecraft/MinecraftSourceSets.java b/src/main/java/net/fabricmc/loom/configuration/providers/minecraft/MinecraftSourceSets.java index 7d058ea6..39df1463 100644 --- a/src/main/java/net/fabricmc/loom/configuration/providers/minecraft/MinecraftSourceSets.java +++ b/src/main/java/net/fabricmc/loom/configuration/providers/minecraft/MinecraftSourceSets.java @@ -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