Skip to content

Commit

Permalink
RemapJarTask: Avoid reordering nested jars
Browse files Browse the repository at this point in the history
Fixes #155.
  • Loading branch information
Juuxel committed Aug 12, 2023
1 parent b084080 commit 66edc60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/net/fabricmc/loom/task/RemapJarTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -431,7 +430,7 @@ private void addNestedJars() {
return;
}

Set<File> jars = new HashSet<>(nestedJars.getFiles());
Set<File> jars = new LinkedHashSet<>(nestedJars.getFiles());
jars.addAll(forgeNestedJars.get().stream().map(NestedFile::file).toList());
JarNester.nestJars(jars, forgeNestedJars.getOrElse(List.of()), outputFile.toFile(), getParameters().getPlatform().get(), LOGGER);
}
Expand Down

0 comments on commit 66edc60

Please sign in to comment.