dedimania small update

This commit is contained in:
kremsy 2017-05-20 10:10:39 +02:00
parent 468f937b2e
commit 8cfe46e32f
2 changed files with 2 additions and 4 deletions

View File

@ -116,7 +116,7 @@ class DedimaniaData {
* Unsets all existing Records * Unsets all existing Records
*/ */
public function unsetRecords() { public function unsetRecords() {
unset($this->records); $this->records = array();
} }
/** /**

View File

@ -238,8 +238,6 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
*/ */
public function handleEveryHalfMinute() { public function handleEveryHalfMinute() {
if ($this->webHandler->getDedimaniaData()->sessionId == "") { if ($this->webHandler->getDedimaniaData()->sessionId == "") {
var_dump("Debug test Dedimania 2, will be removed soon!"); //TODO
var_dump($this->webHandler->getDedimaniaData()->sessionId);
return; return;
} }
$this->webHandler->checkDedimaniaSession(); $this->webHandler->checkDedimaniaSession();
@ -307,7 +305,7 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
/** /**
* Handle Finish Callback * Handle Finish Callback
* *
* @param OnWayPointEventStructure $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) {