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