mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 16:29:40 +00:00
Level: fixed adjacent chunk loading check
This commit is contained in:
parent
ac551cf248
commit
729ae8bab7
@ -980,7 +980,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
//check adjacent chunks are loaded
|
//check adjacent chunks are loaded
|
||||||
for($cx = -1; $cx <= 1; ++$cx){
|
for($cx = -1; $cx <= 1; ++$cx){
|
||||||
for($cz = -1; $cz <= 1; ++$cz){
|
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;
|
continue 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user