Add new Team instances to the list of teams.
This commit is contained in:
parent
548b2f2c60
commit
e5c457df04
@ -149,7 +149,16 @@ public class DownstreamBridge extends PacketHandler
|
||||
}
|
||||
|
||||
// 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 ( team.mode == 0 || team.mode == 2 )
|
||||
|
Loading…
Reference in New Issue
Block a user