Some 32bit var ints need 5 bytes
This commit is contained in:
parent
0f24eaeea3
commit
a272afd693
@ -78,7 +78,7 @@ public abstract class DefinedPacket
|
|||||||
|
|
||||||
out |= ( in & 0x7F ) << ( bytes++ * 7 );
|
out |= ( in & 0x7F ) << ( bytes++ * 7 );
|
||||||
|
|
||||||
if ( bytes > 4 )
|
if ( bytes > 5 )
|
||||||
{
|
{
|
||||||
throw new RuntimeException( "VarInt too big" );
|
throw new RuntimeException( "VarInt too big" );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user