NettyVarint21FrameEncoder exception message is incomplete
The bug
The exception thrown by the method net.minecraft.network.Varint21LengthFieldPrepender.encode(ChannelHandlerContext, ByteBuf, ByteBuf) (20w07a Mojang name) when it tries to encode a buffer whose length cannot be stored using 3 bytes is created with an incomplete message.
unable to fit 2232077 into 3
"unable to fit " + i + " into " + 3
Suggested would for example be
"Cannot write buffer length of " + i + " using " + 3 + " bytes"
Created Issue:
NettyVarint21FrameEncoder exception message is incomplete
Based on 1.12 decompiled using MCP 9.40 PRE 1
The bug
The exception thrown by the method net.minecraft.network.NettyVarint21FrameEncoder.encode(ChannelHandlerContext, ByteBuf, ByteBuf) when it tries to encode bytes whose length cannot be stored using 3 bytes is created with an incomplete message.
Example messageunable to fit 2232077 into 3"unable to fit " + i + " into " + 3Suggested would for example be
"Cannot write buffer length of " + i + " using " + 3 + "bytes"
Based on 1.12 decompiled using MCP 9.40 PRE 1
The bug
The exception thrown by the method net.minecraft.network.NettyVarint21FrameEncoder.encode(ChannelHandlerContext, ByteBuf, ByteBuf) when it tries to encode
byteswhose length cannot be stored using 3 bytes is created with an incomplete message.Example messageunable to fit 2232077 into 3"unable to fit " + i + " into " + 3Suggested would for example be
"Cannot write buffer length of " + i + " using " + 3 + "bytes"Based on 1.12 decompiled using MCP 9.40 PRE 1
The bug
The exception thrown by the method net.minecraft.network.NettyVarint21FrameEncoder.encode(ChannelHandlerContext, ByteBuf, ByteBuf) when it tries to encode a buffer whose length cannot be stored using 3 bytes is created with an incomplete message.
Example messageunable to fit 2232077 into 3"unable to fit " + i + " into " + 3Suggested would for example be
"Cannot write buffer length of " + i + " using " + 3 + "bytes"
Based on 1.12 decompiled using MCP 9.40 PRE 1
The bug
The exception thrown by the method net.minecraft.network.NettyVarint21FrameEncoder.encode(ChannelHandlerContext, ByteBuf, ByteBuf) when it tries to encode a buffer whose length cannot be stored using 3 bytes is created with an incomplete message.
Example messageunable to fit 2232077 into 3"unable to fit " + i + " into " + 3Suggested would for example be
"Cannot write buffer length of " + i + " using " + 3 + " bytes"
Based on 1.12 decompiled using MCP 9.40 PRE 1
The bug
The exception thrown by the method net.minecraft.network.
NettyVarint21FrameEncoder.encode(ChannelHandlerContext, ByteBuf, ByteBuf) when it tries to encode a buffer whose length cannot be stored using 3 bytes is created with an incomplete message.Example messageunable to fit 2232077 into 3"unable to fit " + i + " into " + 3Suggested would for example be
"Cannot write buffer length of " + i + " using " + 3 + " bytes"The bug
The exception thrown by the method net.minecraft.network.Varint21LengthFieldPrepender.encode(ChannelHandlerContext, ByteBuf, ByteBuf) (20w07a Mojang name) when it tries to encode a buffer whose length cannot be stored using 3 bytes is created with an incomplete message.
Example messageunable to fit 2232077 into 3"unable to fit " + i + " into " + 3Suggested would for example be
"Cannot write buffer length of " + i + " using " + 3 + " bytes"
Can confirm in 1.18 Pre-release 1.