made it work with php5 agagin

This commit is contained in:
GameHerobrine 2022-07-31 19:00:37 +03:00
parent da78eb419e
commit eef7b914dd
2 changed files with 11 additions and 11 deletions

View file

@ -457,7 +457,7 @@ class Player{
}
$c = key($this->chunksOrder);
$d = $this->chunksOrder[$c] ?? null;
$d = $this->chunksOrder[$c]; //not sure why was ?? placed here
if($c === null or $d === null){
$this->server->schedule(40, [$this, "getNextChunk"]);
return false;