We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5a0258 commit b521e3aCopy full SHA for b521e3a
src/patcher/java/net/minecraftforge/gradle/patcher/PatcherPlugin.java
@@ -300,6 +300,12 @@ public void apply(Project project) {
300
}
301
302
project.afterEvaluate(p -> {
303
+ if (extension.getParent().isPresent()) {
304
+ final Project parent = extension.getParent().get();
305
+ if (parent.getPlugins().findPlugin(PatcherPlugin.class) != null)
306
+ extension.copyFrom(parent.getExtensions().getByType(PatcherExtension.class));
307
+ }
308
+
309
// Add the patched source as a source dir during afterEvaluate, to not be overwritten by buildscripts
310
mainSource.configure(s -> s.getJava().srcDir(extension.getPatchedSrc()));
311
0 commit comments