Skip to content

Commit

Permalink
Sort client only entries, fixes #940
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Sep 9, 2023
1 parent ae159dd commit 4caf4f8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.io.IOException;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -143,6 +144,7 @@ public final <P extends AbstractRemapParams> void submitWork(Class<? extends Abs
if (getIncludesClientOnlyClasses().get()) {
final List<String> clientOnlyEntries = new ArrayList<>(getClientOnlyEntries(getClientSourceSet()));
clientOnlyEntries.addAll(getAdditionalClientOnlyEntries().get());
Collections.sort(clientOnlyEntries);
applyClientOnlyManifestAttributes(params, clientOnlyEntries);
params.getClientOnlyEntries().set(clientOnlyEntries.stream().filter(s -> s.endsWith(".class")).toList());
}
Expand Down

0 comments on commit 4caf4f8

Please sign in to comment.