small fix
This commit is contained in:
parent
71b2f83611
commit
d51e7750e9
@ -361,10 +361,10 @@ class LocalRecordsPlugin implements CallbackListener, CommandListener, TimerList
|
|||||||
/**
|
/**
|
||||||
* Handle Checkpoint Callback
|
* Handle Checkpoint Callback
|
||||||
*
|
*
|
||||||
* @param RecordCallback $callback
|
* @param OnWayPointEventStructure $callback
|
||||||
*/
|
*/
|
||||||
public function handleCheckpointCallback(OnWayPointEventStructure $structure) {
|
public function handleCheckpointCallback(OnWayPointEventStructure $structure) {
|
||||||
$playerLogin = $structure->getPlayer()->login;
|
$playerLogin = $structure->getLogin();
|
||||||
if (!isset($this->checkpoints[$playerLogin])) {
|
if (!isset($this->checkpoints[$playerLogin])) {
|
||||||
$this->checkpoints[$playerLogin] = array();
|
$this->checkpoints[$playerLogin] = array();
|
||||||
}
|
}
|
||||||
@ -374,7 +374,7 @@ class LocalRecordsPlugin implements CallbackListener, CommandListener, TimerList
|
|||||||
/**
|
/**
|
||||||
* Handle Finish Callback
|
* Handle Finish Callback
|
||||||
*
|
*
|
||||||
* @param RecordCallback $callback
|
* @param \ManiaControl\Callbacks\Structures\TrackMania\OnWayPointEventStructure $structure
|
||||||
*/
|
*/
|
||||||
public function handleFinishCallback(OnWayPointEventStructure $structure) {
|
public function handleFinishCallback(OnWayPointEventStructure $structure) {
|
||||||
if ($structure->getRaceTime() <= 0) {
|
if ($structure->getRaceTime() <= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user