File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/main/java/net/minecraftforge/gradle/internal Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -155,11 +155,13 @@ public void handle(Configuration configuration) {
155155
156156 @ Override
157157 public void handle (SourceSet sourceSet ) {
158+ var problems = this .problems ;
159+ var asString = this .asString .get ();
160+ var dependencyOutput = this .mavenizerOutput .map (dir -> dir .dir (this .asPath )).get ().get ().getAsFile ();
158161 getProject ().getTasks ().named (sourceSet .getCompileJavaTaskName (), JavaCompile .class , task -> {
159162 task .doFirst (t -> {
160- var file = this .mavenizerOutput .map (dir -> dir .dir (this .asPath )).get ().get ().getAsFile ();
161- if (!file .exists ())
162- throw this .problems .mavenizerOutOfDateCompile (this .asString .get ());
163+ if (!dependencyOutput .exists ())
164+ throw problems .mavenizerOutOfDateCompile (asString );
163165 });
164166 });
165167
You can’t perform that action at this time.
0 commit comments