mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 12:46:05 +01:00
#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 )
|
||||
{
|
||||
throw new RuntimeException( "VarInt too big" );
|
||||
throw new OverflowPacketException( "VarInt too big (max " + maxBytes + ")" );
|
||||
}
|
||||
|
||||
if ( ( in & 0x80 ) != 0x80 )
|
||||
|
Loading…
Reference in New Issue
Block a user