Clear compressed size when copying ZIP entries
Johni0702 opened this issue ยท 0 comments
Otherwise if it doesn't match what Java's ZIP compression outputs (because the zip was created with a different program), then we'll get:
java.util.zip.ZipException: invalid entry compressed size (expected 216 but got 217 bytes)
at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:268) ~[?:1.8.0_51]
at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:193) ~[?:1.8.0_51]
at com.replaymod.replaystudio.replay.ZipReplayFile.saveTo(ZipReplayFile.java:344) ~[replaymod-1.16.1-2.5.0-windows-tinyexr-fix.jar:?]
at com.replaymod.replaystudio.replay.ZipReplayFile.save(ZipReplayFile.java:324) ~[replaymod-1.16.1-2.5.0-windows-tinyexr-fix.jar:?]
https://cdn.discordapp.com/attachments/709108200632483900/779614872966266920/latest.log