Skip to content

Commit

Permalink
Revert "Application: Fix packfile reading containing non-full chunks"
Browse files Browse the repository at this point in the history
This reverts commit 22fb102.
  • Loading branch information
ShadelessFox committed Dec 27, 2023
1 parent 262f3e7 commit d00844e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ public int read(@NotNull byte[] buf, int off, int len) throws IOException {
dataoff = (int) (file.span().offset() - chunk.decompressed().offset());
}

if (chunkidx == chunks.length - 1) {
datalen = (int) (file.span().size() - chunk.decompressed().offset() + file.span().offset());
}

chunkidx += 1;
}

Expand Down

0 comments on commit d00844e

Please sign in to comment.