Add new Team instances to the list of teams.

This commit is contained in:
Robin Lambertz 2013-04-09 02:10:41 +02:00
parent 548b2f2c60
commit e5c457df04

View File

@ -149,7 +149,16 @@ public class DownstreamBridge extends PacketHandler
} }
// Create or get old team // Create or get old team
Team t = ( team.mode == 0 ) ? new Team( team.name ) : con.serverSentScoreboard.getTeam( team.name ); Team t;
if ( team.mode == 0 )
{
t = new Team( team.name );
con.serverSentScoreboard.addTeam( team );
} else
{
con.serverSentScoreboard.getTeam( team.name );
}
if ( t != null ) if ( t != null )
{ {
if ( team.mode == 0 || team.mode == 2 ) if ( team.mode == 0 || team.mode == 2 )