@@ -110,6 +110,8 @@ protected Stage[] setStages() {
110110 Files .delete (p );
111111 }
112112 }
113+ // Create Minecraft dir
114+ Files .createDirectories (ffOut .getParent ());
113115 FileUtil .compress (ffOut , MCPPaths .get (mcp , SOURCE_JAR , side ));
114116 Files .createDirectories (srcPath );
115117 if (mcp .getOptions ().getBooleanParameter (TaskParameter .OUTPUT_SRC )) {
@@ -140,7 +142,7 @@ public ClassStorage applyInjector() throws IOException {
140142 injector .addResources (path );
141143 if (stripGenerics ) {
142144 injector .stripLVT ();
143- injector .addTransform (storage -> Transform . stripSignatures ( storage ) );
145+ injector .addTransform (Transform :: stripSignatures );
144146 }
145147 mappings = getMappings (mappingsPath , injector .getStorage (), Side .SERVER );
146148 if (mappings != null ) {
@@ -154,7 +156,7 @@ public ClassStorage applyInjector() throws IOException {
154156 injector .addResources (path );
155157 if (stripGenerics ) {
156158 injector .stripLVT ();
157- injector .addTransform (storage -> Transform . stripSignatures ( storage ) );
159+ injector .addTransform (Transform :: stripSignatures );
158160 }
159161 mappings = getMappings (mappingsPath , injector .getStorage (), Side .CLIENT );
160162 if (mappings != null ) {
@@ -168,15 +170,15 @@ public ClassStorage applyInjector() throws IOException {
168170 injector .addResources (path );
169171 if (stripGenerics ) {
170172 injector .stripLVT ();
171- injector .addTransform (storage -> Transform . stripSignatures ( storage ) );
173+ injector .addTransform (Transform :: stripSignatures );
172174 }
173175 mappings = getMappings (mappingsPath , injector .getStorage (), side );
174176 if (mappings != null ) {
175177 injector .applyMappings (mappings );
176178 }
177179 }
178- injector .addTransform (storage -> Transform . decomposeVars ( storage ) );
179- injector .addTransform (storage -> Transform . replaceCommonConstants ( storage ) );
180+ injector .addTransform (Transform :: decomposeVars );
181+ injector .addTransform (Transform :: replaceCommonConstants );
180182 if (hasLWJGL ) injector .addVisitor (new GLConstants (null ));
181183 injector .restoreSourceFile ();
182184 injector .fixInnerClasses ();
0 commit comments