Replace existing/duplicate nested jars (#106)

dev/0.11
Mitchell Skaggs 2019-06-07 03:24:36 -05:00 committed by Adrian Siekierka
parent 565d01b7c4
commit 11246870fa
1 changed files with 1 additions and 1 deletions

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