Skip to content

Commit

Permalink
Fix "invalid entry compressed size" deobf crash
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenraven committed May 2, 2023
1 parent a68a1f2 commit fc3abaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private void runTransform(TransformOutputs outputs) throws IOException {
|| StringUtils.containsIgnoreCase(entry.getName(), "meta-inf/sig-")) {
continue;
}
jos.putNextEntry(entry);
jos.putNextEntry(new JarEntry(entry.getName()));
if (StringUtils.endsWithIgnoreCase(entry.getName(), ".class")) {
byte[] data = IOUtils.toByteArray(jis);
IOUtils.write(Utilities.simpleRemapClass(data, combined), jos);
Expand Down

0 comments on commit fc3abaf

Please sign in to comment.