Fix issue #262 and put all scoreboard bugs to bed

This commit is contained in:
md_5 2013-04-14 09:33:36 +10:00
parent a9ad4889f7
commit 5620c4679d

View File

@ -170,14 +170,17 @@ public class DownstreamBridge extends PacketHandler
t.setSuffix( team.suffix ); t.setSuffix( team.suffix );
t.setFriendlyMode( team.friendlyFire ); t.setFriendlyMode( team.friendlyFire );
} }
for ( String s : team.players ) if ( team.players != null )
{ {
if ( team.mode == 0 || team.mode == 3 ) for ( String s : team.players )
{ {
t.addPlayer( s ); if ( team.mode == 0 || team.mode == 3 )
} else {
{ t.addPlayer( s );
t.removePlayer( s ); } else
{
t.removePlayer( s );
}
} }
} }
} }