public GuiJoinSpaceRace(EntityClientPlayerMP player)
{
this.thePlayer = player;
GCPlayerStatsClient stats = GCPlayerStatsClient.get(player);
SpaceRace race = SpaceRaceManager.getSpaceRaceFromID(stats.spaceRaceInviteTeamID);
if (race != null)
{
this.spaceRaceData = race;
}
else
{
List<String> playerList = new ArrayList<String>();
playerList.add(player.getGameProfile().getName());
this.spaceRaceData = new SpaceRace(playerList, SpaceRace.DEFAULT_NAME, new FlagData(48, 32), new Vector3(1, 1, 1));
}
}