mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Merge branch '3.6'
This commit is contained in:
commit
4d9b074641
@ -135,8 +135,6 @@ class RegionLoader{
|
|||||||
|
|
||||||
if($length <= 0 or $length > self::MAX_SECTOR_LENGTH){ //Not yet generated / corrupted
|
if($length <= 0 or $length > self::MAX_SECTOR_LENGTH){ //Not yet generated / corrupted
|
||||||
if($length >= self::MAX_SECTOR_LENGTH){
|
if($length >= self::MAX_SECTOR_LENGTH){
|
||||||
$this->locationTable[$index][0] = ++$this->lastSector;
|
|
||||||
$this->locationTable[$index][1] = 1;
|
|
||||||
throw new CorruptedChunkException("Corrupted chunk header detected (sector count $length larger than max " . self::MAX_SECTOR_LENGTH . ")");
|
throw new CorruptedChunkException("Corrupted chunk header detected (sector count $length larger than max " . self::MAX_SECTOR_LENGTH . ")");
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user