Ensure that deps with injected ifaces are on both the compile and runtime classpath. (#689)

This commit is contained in:
modmuss50
2022-07-26 12:47:00 +01:00
committed by GitHub
parent dbbc3457d5
commit c4240eff16

View File

@@ -183,8 +183,9 @@ public class InterfaceInjectionProcessor implements JarProcessor, GenerateSource
List<InjectedInterface> result = new ArrayList<>();
for (RemappedConfigurationEntry entry : Constants.MOD_COMPILE_ENTRIES) {
// Only apply injected interfaces from mods that are part of the compile classpath
if (!entry.compileClasspath()) {
// Only apply injected interfaces from mods that are part of the compile and runtime classpath.
// Runtime is also required to ensure that the interface and it's impl is present when running the mc jar.
if (!(entry.compileClasspath() && entry.runtimeClasspath())) {
continue;
}