Missed some getters

This commit is contained in:
md_5 2013-06-01 18:01:04 +10:00
parent c5307c4451
commit dce0f6b408

View File

@ -44,14 +44,14 @@ public class PacketD1Team extends DefinedPacket
{
name = readString( buf );
mode = buf.readByte();
if ( getMode() == 0 || getMode() == 2 )
if ( mode == 0 || mode == 2 )
{
displayName = readString( buf );
prefix = readString( buf );
suffix = readString( buf );
friendlyFire = buf.readBoolean();
}
if ( getMode() == 0 || getMode() == 3 || getMode() == 4 )
if ( mode == 0 || mode == 3 || mode == 4 )
{
players = new String[ buf.readShort() ];
for ( int i = 0; i < getPlayers().length; i++ )