Fixed level event duplication on some cases

This commit is contained in:
Shoghi Cervantes 2013-06-05 12:20:57 +02:00
parent a5bc95e733
commit fbf897d1be

View File

@ -68,6 +68,9 @@ class Level{
} }
public function checkThings(){ public function checkThings(){
if(!isset($this->level){
return false;
}
$this->players = $this->server->api->player->getAll($this); $this->players = $this->server->api->player->getAll($this);
$now = microtime(true); $now = microtime(true);
$time = $this->startTime + ($now - $this->startCheck) * 20; $time = $this->startTime + ($now - $this->startCheck) * 20;