-
-
Notifications
You must be signed in to change notification settings - Fork 302
Closed
Description
- This issue is not solved in a development build
Describe the bug
When I try to create a packet container for the client custom payload, I cannot write to the byte array field.
To Reproduce
Steps to reproduce the behavior:
-
I am using the latest 5.0.0-SNAPSHOT API
-
Here is my code:
PacketContainer packetContainer = new PacketContainer(PacketType.Play.Client.CUSTOM_PAYLOAD); packetContainer.getByteArrays().write(0, bytes); -
I get the error Field index 0 is out of bounds for length 0
Expected behavior
It should allow me to get that field
Screenshots
If applicable, add screenshots to help explain your problem.
Version Info
Provide your ProtocolLib install info with /protocol dump through pastebin.
http://dump-2022-12-21_12.13.31.txt
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels