#3574: "VarInt too big" should be an OverflowPacketException
This commit is contained in:
parent
51b9a6b0b8
commit
3deaaadc3a
@ -231,7 +231,7 @@ public abstract class DefinedPacket
|
|||||||
|
|
||||||
if ( bytes > maxBytes )
|
if ( bytes > maxBytes )
|
||||||
{
|
{
|
||||||
throw new RuntimeException( "VarInt too big" );
|
throw new OverflowPacketException( "VarInt too big (max " + maxBytes + ")" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ( in & 0x80 ) != 0x80 )
|
if ( ( in & 0x80 ) != 0x80 )
|
||||||
|
Loading…
Reference in New Issue
Block a user