mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 11:18:52 +00:00
Fixed level event duplication on some cases
This commit is contained in:
parent
a5bc95e733
commit
fbf897d1be
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user