From d3d4df2d6522056e037e47a6bf86a7b1569b5925 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 29 Sep 2021 00:03:18 +1300 Subject: [PATCH] Use rewind() instead of position(0) for ByteBuffer --- .../disguise/utilities/reflection/ReflectionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java index 598f2ee9..2f597a94 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java @@ -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();