@@ -117,7 +117,7 @@ private MCPRepo(Project project, File cache, Logger log) {
117117 super (cache , log );
118118 this .project = project ;
119119 this .repo = SimpleRepository .of (ArtifactProviderBuilder .begin (ArtifactIdentifier .class )
120- .provide (this )
120+ .provide (this )
121121 );
122122 }
123123
@@ -207,7 +207,7 @@ public File findFile(ArtifactIdentifier artifact) throws IOException {
207207
208208 private HashStore commonHash (File mcp ) {
209209 return new HashStore (this .getCacheRoot ())
210- .add ("mcp" , mcp );
210+ .add ("mcp" , mcp );
211211 }
212212
213213 private File getMCP (String version ) throws IOException {
@@ -497,12 +497,12 @@ private File findOfficialMapping(String version) throws IOException {
497497 continue ;
498498 for (IField fld : cls .getFields ()) {
499499 String name = obf .remapField (fld .getMapped ());
500- if (name .startsWith ("field_" ))
500+ if (name .startsWith ("field_" ) || name . startsWith ( "f_" ) )
501501 cfields .put (name , fld .getOriginal ());
502502 }
503503 for (IMethod mtd : cls .getMethods ()) {
504504 String name = obf .remapMethod (mtd .getMapped (), mtd .getMappedDescriptor ());
505- if (name .startsWith ("func_" ))
505+ if (name .startsWith ("func_" ) || name . startsWith ( "m_" ) )
506506 cmethods .put (name , mtd .getOriginal ());
507507 }
508508 }
@@ -512,12 +512,12 @@ private File findOfficialMapping(String version) throws IOException {
512512 continue ;
513513 for (IField fld : cls .getFields ()) {
514514 String name = obf .remapField (fld .getMapped ());
515- if (name .startsWith ("field_" ))
515+ if (name .startsWith ("field_" ) || name . startsWith ( "f_" ) )
516516 sfields .put (name , fld .getOriginal ());
517517 }
518518 for (IMethod mtd : cls .getMethods ()) {
519519 String name = obf .remapMethod (mtd .getMapped (), mtd .getMappedDescriptor ());
520- if (name .startsWith ("func_" ))
520+ if (name .startsWith ("func_" ) || name . startsWith ( "m_" ) )
521521 smethods .put (name , mtd .getOriginal ());
522522 }
523523 }
@@ -555,7 +555,7 @@ private File findOfficialMapping(String version) throws IOException {
555555 mappings .getParentFile ().mkdirs ();
556556
557557 try (FileOutputStream fos = new FileOutputStream (mappings );
558- ZipOutputStream out = new ZipOutputStream (fos )) {
558+ ZipOutputStream out = new ZipOutputStream (fos )) {
559559
560560 out .putNextEntry (Utils .getStableEntry ("fields.csv" ));
561561 try (CsvWriter writer = CsvWriter .builder ().lineDelimiter (LineDelimiter .LF ).build (new UncloseableOutputStreamWritter (out ))) {
0 commit comments