Replace existing/duplicate nested jars (#106)
This commit is contained in:
parent
565d01b7c4
commit
11246870fa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue