Merge branch 'stable'

# Conflicts:
#	build/php
#	composer.lock
#	resources/vanilla
#	src/pocketmine/VersionInfo.php
#	src/pocketmine/level/format/io/region/McRegion.php
This commit is contained in:
Dylan K. Taylor
2020-12-07 18:57:58 +00:00
5 changed files with 32 additions and 23 deletions

View File

@ -218,6 +218,9 @@ abstract class RegionWorldProvider extends BaseWorldProvider{
self::getRegionIndex($chunkX, $chunkZ, $regionX, $regionZ);
assert(is_int($regionX) and is_int($regionZ));
if(!file_exists($this->pathToRegion($regionX, $regionZ))){
return null;
}
$this->loadRegion($regionX, $regionZ);
$chunkData = $this->getRegion($regionX, $regionZ)->readChunk($chunkX & 0x1f, $chunkZ & 0x1f);