Skip to content

Commit

Permalink
fix deprecation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ix0rai committed Apr 14, 2024
1 parent 7e5b99d commit 82a3d84
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void run(InputChanges changes) {

private static EntryTree<EntryMapping> readMappings(FileCollection files) throws IOException, MappingParseException {
Path[] paths = files.getFiles().stream().map(File::toPath).toArray(Path[]::new);
return EnigmaMappingsReader.readFiles(ProgressListener.none(), paths);
return EnigmaMappingsReader.readFiles(ProgressListener.createEmpty(), paths);
}

private static String getFullName(EntryTree<EntryMapping> mappings, Entry<?> entry) {
Expand Down Expand Up @@ -152,9 +152,9 @@ public void execute() {

// Set up Enigma
Enigma enigma = Enigma.create();
EnigmaProject project = enigma.openJar(params.getJarFile().get().getAsFile().toPath(), new ClasspathClassProvider(), ProgressListener.none());
EnigmaProject project = enigma.openJar(params.getJarFile().get().getAsFile().toPath(), new ClasspathClassProvider(), ProgressListener.createEmpty());
EntryTree<EntryMapping> mappings = readMappings(getParameters().getMappingFiles());
project.setMappings(mappings, ProgressListener.none());
project.setMappings(mappings, ProgressListener.createEmpty());
Function<Entry<?>, AccessFlags> accessProvider = entry -> {
EntryIndex index = project.getJarIndex().getIndex(EntryIndex.class);

Expand Down

0 comments on commit 82a3d84

Please sign in to comment.