From 8241abdbf2f6cc11fbb885589b07f5c8ac3ea363 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 20 May 2017 12:37:34 +0200 Subject: [PATCH] small improvements --- core/ManiaControl.php | 2 +- plugins/MCTeam/Dedimania/DedimaniaWebHandler.php | 2 +- plugins/MCTeam/LocalRecordsPlugin.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/ManiaControl.php b/core/ManiaControl.php index 5849ad51..964d84dc 100644 --- a/core/ManiaControl.php +++ b/core/ManiaControl.php @@ -52,7 +52,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener, /* * Constants */ - const VERSION = '0.218'; + const VERSION = '0.219'; const API_VERSION = '2013-04-16'; const MIN_DEDIVERSION = '2017-05-03_21_00'; const SCRIPT_TIMEOUT = 40; diff --git a/plugins/MCTeam/Dedimania/DedimaniaWebHandler.php b/plugins/MCTeam/Dedimania/DedimaniaWebHandler.php index 677ba6d8..f8a8f868 100644 --- a/plugins/MCTeam/Dedimania/DedimaniaWebHandler.php +++ b/plugins/MCTeam/Dedimania/DedimaniaWebHandler.php @@ -44,7 +44,7 @@ class DedimaniaWebHandler { * * @param bool $updateRecords */ - public function openDedimaniaSession($updateRecords = true) { + public function openDedimaniaSession($updateRecords = false) { $content = $this->encodeRequest(self::DEDIMANIA_OPEN_SESSION, array($this->dedimaniaData->toArray())); $asyncHttpRequest = new AsyncHttpRequest($this->maniaControl, self::DEDIMANIA_URL); diff --git a/plugins/MCTeam/LocalRecordsPlugin.php b/plugins/MCTeam/LocalRecordsPlugin.php index 0d506b78..6d0847d5 100644 --- a/plugins/MCTeam/LocalRecordsPlugin.php +++ b/plugins/MCTeam/LocalRecordsPlugin.php @@ -336,7 +336,7 @@ class LocalRecordsPlugin implements ManialinkPageAnswerListener, CallbackListene $nameLabel = new Label(); $recordFrame->addChild($nameLabel); $nameLabel->setHorizontalAlign($nameLabel::LEFT); - $nameLabel->setX($width * -0.4); + $nameLabel->setX($width * -0.36); $nameLabel->setSize($width * 0.6, $lineHeight); $nameLabel->setTextSize(1); $nameLabel->setText($record->nickname);