From 7c4c18535f8655ae04a0a799394b6b744629a807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Tue, 6 May 2014 10:29:07 +0200 Subject: [PATCH] 5.3 support --- application/core/Manialinks/CustomUIManager.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/core/Manialinks/CustomUIManager.php b/application/core/Manialinks/CustomUIManager.php index 58b1ab49..43a9f156 100644 --- a/application/core/Manialinks/CustomUIManager.php +++ b/application/core/Manialinks/CustomUIManager.php @@ -69,9 +69,9 @@ class CustomUIManager implements CallbackListener, TimerListener { * * @param Player $player */ - private function updateManialink(Player $player = null) { + public function updateManialink(Player $player = null) { if ($player) { - $this->maniaControl->manialinkManager->sendManialink($this->customUI, $player->login); + $this->maniaControl->manialinkManager->sendManialink($this->customUI, $player); return; } $this->maniaControl->manialinkManager->sendManialink($this->customUI); @@ -85,6 +85,7 @@ class CustomUIManager implements CallbackListener, TimerListener { public function handlePlayerJoined(Player $player) { $this->updateManialink($player); + //TODO: validate necessity //send it again after 500ms $self = $this; $this->maniaControl->timerManager->registerOneTimeListening($this, function ($time) use (&$self, &$player) {