Manifest cleanup

This commit is contained in:
Juuxel
2020-12-02 20:46:56 +02:00
parent 8046f0c33c
commit 80780701d1
2 changed files with 2 additions and 9 deletions

View File

@@ -160,18 +160,11 @@ public class MinecraftMappedProvider extends DependencyProvider {
}
for (Map.Entry<String, Attributes> forgeEntry : forgeManifest.getEntries().entrySet()) {
if (!forgeEntry.getKey().endsWith(".class")) {
if (forgeEntry.getKey().endsWith("/")) {
minecraftManifest.getEntries().put(forgeEntry.getKey(), forgeEntry.getValue());
}
}
Attributes javafmlmod = new Attributes();
javafmlmod.put("Implementation-Version", version.getForgeVersion());
Attributes mclanguageprovider = new Attributes();
mclanguageprovider.put("Implementation-Version", version.getMinecraftVersion());
minecraftManifest.getEntries().putIfAbsent("net/minecraftforge/fml/javafmlmod/", javafmlmod);
minecraftManifest.getEntries().putIfAbsent("net/minecraftforge/fml/mclanguageprovider/", mclanguageprovider);
Files.delete(manifestPath);
try (OutputStream out = Files.newOutputStream(manifestPath)) {