Use rewind() instead of position(0) for ByteBuffer

This commit is contained in:
libraryaddict 2021-09-29 00:03:18 +13:00
parent ae0aa70304
commit d3d4df2d65
1 changed files with 1 additions and 1 deletions

View File

@ -879,7 +879,7 @@ public class ReflectionManager {
bb.put(6, (byte) (bb.get(6) & 0x0f)); // clear version
bb.put(6, (byte) (bb.get(6) | DisguiseConfig.getUUIDGeneratedVersion())); // set to version X (Default 4)
bb.position(0);
bb.rewind();
long firstLong = bb.getLong();
long secondLong = bb.getLong();