Level: fixed adjacent chunk loading check

This commit is contained in:
Dylan K. Taylor 2019-01-27 16:20:25 +00:00
parent ac551cf248
commit 729ae8bab7

View File

@ -980,7 +980,7 @@ class Level implements ChunkManager, Metadatable{
//check adjacent chunks are loaded
for($cx = -1; $cx <= 1; ++$cx){
for($cz = -1; $cz <= 1; ++$cz){
if(!isset($this->chunks[Level::chunkHash($chunkX + $cx, $chunkZ + $cz)])){
if(!isset($this->chunks[Level::chunkHash($chunkX + $dx + $cx, $chunkZ + $dz + $cz)])){
continue 3;
}
}