Added setMatchPoints() to Trackmania OnScoresStructure, Fixed a Maplist search bug

This commit is contained in:
Jocy 2017-05-14 17:12:48 +02:00
parent 4cc523800a
commit a3d7bdbb8a
2 changed files with 6 additions and 1 deletions

View File

@ -35,6 +35,7 @@ class OnScoresStructure extends CommonScoresStructure {
$playerScore->setRank($jsonPlayer->rank);
$playerScore->setRoundPoints($jsonPlayer->roundpoints);
$playerScore->setMapPoints($jsonPlayer->mappoints);
$playerScore->setMatchPoints($jsonPlayer->matchpoints);
$playerScore->setBestRaceTime($jsonPlayer->bestracetime);
$playerScore->setBestLapTime($jsonPlayer->bestlaptime);
$playerScore->setStuntScore($jsonPlayer->stuntsscore);

View File

@ -778,7 +778,11 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$player = $this->maniaControl->getPlayerManager()->getPlayer($login);
$searchString = $callback[1][3][0]['Value'];
$maps = $this->maniaControl->getMapManager()->searchMapsByAuthor($searchString);
if ($searchString) {
$maps = $this->maniaControl->getMapManager()->searchMapsByAuthor($searchString);
} else {
$maps = null;
}
$this->showMapList($player, $maps);
}