small fix
This commit is contained in:
parent
1d644dfa18
commit
aefdcac08b
@ -177,7 +177,6 @@ class PlayerManager implements CallbackListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$player->teamId = $callback[1][0]["TeamId"];
|
$player->teamId = $callback[1][0]["TeamId"];
|
||||||
$player->isSpectator = $callback[1][0]["SpectatorStatus"];
|
|
||||||
$player->ladderRank = $callback[1][0]["LadderRanking"];
|
$player->ladderRank = $callback[1][0]["LadderRanking"];
|
||||||
|
|
||||||
$prevJoinState = $player->hasJoinedGame;
|
$prevJoinState = $player->hasJoinedGame;
|
||||||
@ -200,6 +199,7 @@ class PlayerManager implements CallbackListener {
|
|||||||
// Trigger own PlayerJoined callback
|
// Trigger own PlayerJoined callback
|
||||||
$this->maniaControl->callbackManager->triggerCallback(self::CB_PLAYERJOINED, array(self::CB_PLAYERJOINED, $player));
|
$this->maniaControl->callbackManager->triggerCallback(self::CB_PLAYERJOINED, array(self::CB_PLAYERJOINED, $player));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Trigger own callback
|
// Trigger own callback
|
||||||
$this->maniaControl->callbackManager->triggerCallback(self::CB_PLAYERINFOCHANGED, array(self::CB_PLAYERINFOCHANGED));
|
$this->maniaControl->callbackManager->triggerCallback(self::CB_PLAYERINFOCHANGED, array(self::CB_PLAYERINFOCHANGED));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user