packetevents
packetevents copied to clipboard
Fix re-encode for new bytebufs that were bigger than the received one
If you tried to mark for re-encode a packet containing ItemStack and the received ByteBuf didn't have enough capacity to write the new data an error occurred. Allocating a new ByteBuf will allow us to always write the required bytes