Fix team packet for 1.7 servers

This commit is contained in:
md_5 2014-01-28 13:28:06 +11:00
parent 842392d59c
commit 649f83dee2

View File

@ -54,7 +54,7 @@ public class Team extends DefinedPacket
} }
if ( mode == 0 || mode == 3 || mode == 4 ) 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 ]; players = new String[ len ];
for ( int i = 0; i < len; i++ ) for ( int i = 0; i < len; i++ )
{ {