Some 32bit var ints need 5 bytes

This commit is contained in:
md_5 2014-02-13 07:13:48 +11:00
parent 0f24eaeea3
commit a272afd693

View File

@ -78,7 +78,7 @@ public abstract class DefinedPacket
out |= ( in & 0x7F ) << ( bytes++ * 7 );
if ( bytes > 4 )
if ( bytes > 5 )
{
throw new RuntimeException( "VarInt too big" );
}