Skip to content

Commit

Permalink
Implement generation of split-source Manifest entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Dec 14, 2024
1 parent 50a2fc4 commit cc2a49c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private void doRun() throws Exception {

var manifest = new Manifest();
manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, "1.0");
manifest.getMainAttributes().putValue("NeoForm-Minecraft-Dists", "server client");
manifest.getMainAttributes().putValue("Minecraft-Dists", "server client");

addSourceDistEntries(clientFiles, serverFiles, "client", mappings, manifest);
addSourceDistEntries(serverFiles, clientFiles, "server", mappings, manifest);
Expand Down Expand Up @@ -93,7 +93,7 @@ private static void addSourceDistEntries(Set<String> distFiles,
for (var file : distFiles) {
if (!otherDistFiles.contains(file)) {
var fileAttr = new Attributes(1);
fileAttr.putValue("NeoForm-Minecraft-Dist", dist);
fileAttr.putValue("Minecraft-Dist", dist);

if (mappings != null && file.endsWith(".class")) {
file = mappings.remapClass(file.substring(0, file.length() - ".class".length())) + ".class";
Expand Down

0 comments on commit cc2a49c

Please sign in to comment.