From e56b83ccb3839177dbe6da649785d09cfe6f6cee Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 6 May 2017 10:09:41 +0200 Subject: [PATCH] small tm callback fixes --- .../Structures/TrackMania/OnScoresStructure.php | 2 +- .../Structures/TrackMania/OnStuntEventStructure.php | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/core/Callbacks/Structures/TrackMania/OnScoresStructure.php b/core/Callbacks/Structures/TrackMania/OnScoresStructure.php index e523fc8b..c559348f 100644 --- a/core/Callbacks/Structures/TrackMania/OnScoresStructure.php +++ b/core/Callbacks/Structures/TrackMania/OnScoresStructure.php @@ -36,7 +36,7 @@ class OnScoresStructure extends CommonScoresStructure { $playerScore->setMapPoints($jsonPlayer->mappoints); $playerScore->setBestRaceTime($jsonPlayer->bestracetime); $playerScore->setBestLapTime($jsonPlayer->bestlaptime); - $playerScore->setStuntScore($jsonPlayer->stuntscore); + $playerScore->setStuntScore($jsonPlayer->stuntsscore); $playerScore->setBestRaceRespawns($jsonPlayer->bestracerespawns); $playerScore->setBestRaceCheckpoints($jsonPlayer->bestracecheckpoints); $playerScore->setBestLapRespawns($jsonPlayer->bestlaprespawns); diff --git a/core/Callbacks/Structures/TrackMania/OnStuntEventStructure.php b/core/Callbacks/Structures/TrackMania/OnStuntEventStructure.php index 2aff23ed..48f8461a 100644 --- a/core/Callbacks/Structures/TrackMania/OnStuntEventStructure.php +++ b/core/Callbacks/Structures/TrackMania/OnStuntEventStructure.php @@ -15,7 +15,6 @@ use ManiaControl\ManiaControl; * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 */ class OnStuntEventStructure extends BasePlayerTimeStructure { - private $numberOfRespawns; private $raceTime; private $lapTime; private $stuntsScore; @@ -39,7 +38,6 @@ class OnStuntEventStructure extends BasePlayerTimeStructure { $jsonObj = $this->getPlainJsonObject(); - $this->numberOfRespawns = (int) $jsonObj->numberOfRespawns; $this->raceTime = (int) $jsonObj->racetime; $this->lapTime = (int) $jsonObj->laptime; $this->stuntsScore = $jsonObj->stuntsscore; @@ -76,15 +74,7 @@ class OnStuntEventStructure extends BasePlayerTimeStructure { public function getStuntsScore() { return $this->stuntsScore; } - - /** - * @api - * @return int - */ - public function getNumberOfRespawns() { - return $this->numberOfRespawns; - } - + /** * @api * @return mixed