callback fixes

This commit is contained in:
kremsy 2017-03-25 20:37:39 +01:00
parent d6995f211d
commit 4effad8f6d
2 changed files with 1 additions and 3 deletions

View File

@ -42,8 +42,6 @@ class OnCaptureStructure extends BaseStructure {
$position->setZ($jsonObj->landmark->position->z);
$this->landMark->setPosition($position);
$this->shooter = $this->maniaControl->getPlayerManager()->getPlayer($this->getPlainJsonObject()->shooter);
}
/** Dumps the Object with some Information */

View File

@ -25,7 +25,7 @@ class OnPlayerRequestRespawnStructure extends BaseStructure {
parent::__construct($maniaControl, $data);
$this->time = $this->getPlainJsonObject()->time;
$this->player = $this->maniaControl->getPlayerManager()->getPlayer($this->getPlainJsonObject()->victim);
$this->player = $this->maniaControl->getPlayerManager()->getPlayer($this->getPlainJsonObject()->login);
}
/**