Replace existing/duplicate nested jars (#106)

This commit is contained in:
Mitchell Skaggs 2019-06-07 03:24:36 -05:00 committed by Adrian Siekierka
parent 565d01b7c4
commit 11246870fa

View file

@ -61,7 +61,7 @@ public class NestedJars {
File modJar = modJarPath.toFile();
ZipUtil.addEntries(modJar, getContainedJars(project).stream().map(file -> new FileSource("META-INF/jars/" + file.getName(), file)).toArray(ZipEntrySource[]::new));
ZipUtil.addOrReplaceEntries(modJar, getContainedJars(project).stream().map(file -> new FileSource("META-INF/jars/" + file.getName(), file)).toArray(ZipEntrySource[]::new));
return ZipUtil.transformEntries(modJar, single(new ZipEntryTransformerEntry("fabric.mod.json", new StringZipEntryTransformer() {
@Override