Fix the crash with teams not being cleared

You forgot to actually add the team to the list of teams...
This commit is contained in:
Robin Lambertz 2013-04-09 01:23:08 +02:00
parent 3733ecf628
commit 548b2f2c60

View File

@ -67,6 +67,7 @@ public class Scoreboard
{
Preconditions.checkNotNull( team, "team" );
Preconditions.checkArgument( !teams.containsKey( team.getName() ), "Team %s already exists in this scoreboard", team.getName() );
teams.put( team.getName(), team );
}
public Team getTeam(String name)