diff --git a/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v766/BedrockCodecHelper_v766.java b/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v766/BedrockCodecHelper_v766.java index 31e3bb56..d8f3616c 100644 --- a/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v766/BedrockCodecHelper_v766.java +++ b/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v766/BedrockCodecHelper_v766.java @@ -34,7 +34,7 @@ public > void readLargeVarIntFlags(ByteBuf buffer, Set flag @Override public > void writeLargeVarIntFlags(ByteBuf buffer, Set flags, Class clazz) { - BigInteger flagsInt = new BigInteger(clazz.getEnumConstants().length, ThreadLocalRandom.current()); + BigInteger flagsInt = BigInteger.ZERO; for (T flag : flags) { flagsInt = flagsInt.setBit(flag.ordinal()); } diff --git a/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/data/PlayerAuthInputData.java b/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/data/PlayerAuthInputData.java index 137a28e3..a150994a 100644 --- a/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/data/PlayerAuthInputData.java +++ b/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/data/PlayerAuthInputData.java @@ -125,6 +125,10 @@ public enum PlayerAuthInputData { * @since v748 */ STOP_SPIN_ATTACK, + /** + * @since v766 + */ + HOTBAR_ONLY_TOUCH, /** * @since v766 */