mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 21:19:44 +00:00
Fixed level event duplication on some cases
This commit is contained in:
parent
a5bc95e733
commit
fbf897d1be
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue