#3574: "VarInt too big" should be an OverflowPacketException

This commit is contained in:
Outfluencer 2023-12-16 01:29:03 +01:00 committed by GitHub
parent 51b9a6b0b8
commit 3deaaadc3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,7 +231,7 @@ public abstract class DefinedPacket
if ( bytes > maxBytes )
{
throw new RuntimeException( "VarInt too big" );
throw new OverflowPacketException( "VarInt too big (max " + maxBytes + ")" );
}
if ( ( in & 0x80 ) != 0x80 )