mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
World: call nearby entities' onNearbyBlockChange() in setChunk()
fixes #2779 in all known cases.
This commit is contained in:
@ -2177,6 +2177,14 @@ class World implements ChunkManager{
|
||||
$listener->onChunkChanged($chunkX, $chunkZ, $chunk);
|
||||
}
|
||||
}
|
||||
|
||||
for($cX = -1; $cX <= 1; ++$cX){
|
||||
for($cZ = -1; $cZ <= 1; ++$cZ){
|
||||
foreach($this->getChunkEntities($chunkX + $cX, $chunkZ + $cZ) as $entity){
|
||||
$entity->onNearbyBlockChange();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user