1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2026-04-15 11:31:22 +00:00
Files
CC-Tweaked/src/main/java/dan200
Jonathan Coates 0477b2742c Use duplicate() instead of rewind()
It's just more confusing having to keep track of where the ByteBuffer is
at. In this case, I think we were forgetting to rewind after computing
the digest.

Hopefully we'll be able to drop some of these in 1.17 as Java 16 has
a few more ByteBuffer methods

Fixes #992
2021-12-18 11:23:12 +00:00
..