From 649f83dee28a473e499df2af168de9b8ab8bf7b7 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 28 Jan 2014 13:28:06 +1100 Subject: [PATCH] Fix team packet for 1.7 servers --- .../src/main/java/net/md_5/bungee/protocol/packet/Team.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/Team.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/Team.java index 91db8628..be9c71f9 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/Team.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/Team.java @@ -54,7 +54,7 @@ public class Team extends DefinedPacket } if ( mode == 0 || mode == 3 || mode == 4 ) { - int len = ( protocolVersion >= 7 ) ? readVarInt( buf ) : buf.readInt(); + int len = ( protocolVersion >= 7 ) ? readVarInt( buf ) : buf.readShort(); players = new String[ len ]; for ( int i = 0; i < len; i++ ) {