diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index e3850b4f7..56671d509 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -601,6 +601,14 @@ class Level implements ChunkManager, Metadatable{ return $this->chunkLoaders[Level::chunkHash($chunkX, $chunkZ)] ?? []; } + /** + * Queues a DataPacket to be sent to all players using the chunk at the specified X/Z coordinates at the end of the + * current tick. + * + * @param int $chunkX + * @param int $chunkZ + * @param DataPacket $packet + */ public function addChunkPacket(int $chunkX, int $chunkZ, DataPacket $packet){ if(!isset($this->chunkPackets[$index = Level::chunkHash($chunkX, $chunkZ)])){ $this->chunkPackets[$index] = [$packet];