packetevents icon indicating copy to clipboard operation
packetevents copied to clipboard

Fix re-encode for new bytebufs that were bigger than the received one

Open ytnoos opened this issue 1 year ago • 0 comments

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

ytnoos avatar Mar 02 '24 09:03 ytnoos