mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Heap of bugfixes, cleanup and PHP 7 upgrades
This commit is contained in:
@ -292,7 +292,7 @@ class RegionLoader{
|
||||
$index = $data[$i + 1];
|
||||
$offset = $index >> 8;
|
||||
if($offset !== 0){
|
||||
fseek($this->filePointer, ($offset << 12));
|
||||
fseek($this->filePointer, $offset << 12);
|
||||
if(fgetc($this->filePointer) === false){ //Try and read from the location
|
||||
throw new CorruptedRegionException("Region file location offset points to invalid location");
|
||||
}elseif(isset($usedOffsets[$offset])){
|
||||
|
Reference in New Issue
Block a user