goodbye php5, u wont be missed

This commit is contained in:
GameHerobrine 2023-07-03 06:49:12 +03:00
parent 2858b43748
commit d7d346a237
16 changed files with 26 additions and 33 deletions

View file

@ -444,7 +444,7 @@ class PMFLevel extends PMF{
$X = $x >> 4;
$Z = $z >> 4;
$index = $this->getIndex($X, $Z);
return nullsafe($this->chunks[$index], 0);
return $this->chunks[$index] ?? 0;
}
public function getBlockID($x, $y, $z){