diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/PacketD1Team.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/PacketD1Team.java index 32d4556e..9ffc3fee 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/PacketD1Team.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/PacketD1Team.java @@ -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++ )