mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
RegionLoader: use actual null instead of zeroed entry for non-allocated chunks
this forces the code to be properly aware of non-allocated chunks, because it'll crash with NPE if it isn't.
This commit is contained in:
@ -73,10 +73,6 @@ class RegionLocationTableEntry{
|
||||
return $this->timestamp;
|
||||
}
|
||||
|
||||
public function isNull() : bool{
|
||||
return $this->firstSector === 0 or $this->sectorCount === 0;
|
||||
}
|
||||
|
||||
public function overlaps(RegionLocationTableEntry $other) : bool{
|
||||
$overlapCheck = static function(RegionLocationTableEntry $entry1, RegionLocationTableEntry $entry2) : bool{
|
||||
$entry1Last = $entry1->getLastSector();
|
||||
|
Reference in New Issue
Block a user