Skip to content

Commit

Permalink
fix drop invalid mappings command dropping every mapping (oops)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8b6f9fa)
(cherry picked from commit a2763ad)
  • Loading branch information
ix0rai committed Aug 10, 2023
1 parent 8f889fd commit 95381b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public static void run(Path jarIn, Path mappingsIn, Path mappingsOut) throws Exc
return;
}

MappingFormat format = MappingFormat.parseFromFile(mappingsIn);
EnigmaProject project = openProject(jarIn, mappingsIn);

Logger.info("Dropping invalid mappings...");
Expand Down Expand Up @@ -72,7 +73,6 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
}

MappingSaveParameters saveParameters = project.getEnigma().getProfile().getMappingSaveParameters();
MappingFormat format = MappingFormat.parseFromFile(mappingsOut);
format.write(project.getMapper().getObfToDeobf(), mappingsOut, ProgressListener.none(), saveParameters);
}
}

0 comments on commit 95381b8

Please sign in to comment.