small fix
This commit is contained in:
parent
dfb9debdd2
commit
990b126e4f
@ -25,6 +25,10 @@ class AsynchronousFileReader implements TimerListener {
|
|||||||
$this->maniaControl = $maniaControl;
|
$this->maniaControl = $maniaControl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends the Data
|
||||||
|
* @throws \Exception
|
||||||
|
*/
|
||||||
public function appendData() {
|
public function appendData() {
|
||||||
foreach($this->sockets as $key => &$socket) {
|
foreach($this->sockets as $key => &$socket) {
|
||||||
/** @var SocketStructure $socket */
|
/** @var SocketStructure $socket */
|
||||||
|
@ -111,8 +111,9 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
|
|||||||
/**
|
/**
|
||||||
* Display the Mania Exchange List
|
* Display the Mania Exchange List
|
||||||
*
|
*
|
||||||
* @param array $chatCallback
|
* @param $maps
|
||||||
* @param Player $player
|
* @param Player $player
|
||||||
|
* @internal param array $chatCallback
|
||||||
*/
|
*/
|
||||||
private function showManiaExchangeList($maps, Player $player) {
|
private function showManiaExchangeList($maps, Player $player) {
|
||||||
// Start offsets
|
// Start offsets
|
||||||
@ -146,6 +147,7 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
|
|||||||
$y = $height / 2 - 16;
|
$y = $height / 2 - 16;
|
||||||
$pageFrames = array();
|
$pageFrames = array();
|
||||||
foreach($maps as $map) { //TODO order possabilities
|
foreach($maps as $map) { //TODO order possabilities
|
||||||
|
/** @var MxMapInfo $map */
|
||||||
if (!isset($pageFrame)) {
|
if (!isset($pageFrame)) {
|
||||||
$pageFrame = new Frame();
|
$pageFrame = new Frame();
|
||||||
$frame->add($pageFrame);
|
$frame->add($pageFrame);
|
||||||
|
Loading…
Reference in New Issue
Block a user