Merge pull request #259 from roblabla/patch-2

Fix Crash with Teams. For real this time.
This commit is contained in:
md-5 2013-04-08 17:26:10 -07:00
commit edceaf072c

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( t );
} else
{
t = 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 )