From a272afd693feee042d4a7a8617e98e76bf378542 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 13 Feb 2014 07:13:48 +1100 Subject: [PATCH] Some 32bit var ints need 5 bytes --- .../src/main/java/net/md_5/bungee/protocol/DefinedPacket.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/DefinedPacket.java b/protocol/src/main/java/net/md_5/bungee/protocol/DefinedPacket.java index 2589decb..a42a7011 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/DefinedPacket.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/DefinedPacket.java @@ -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" ); }