mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Level->sendBlocks() now syncs tiles
This commit is contained in:
@ -975,8 +975,12 @@ class Level implements ChunkManager, Metadatable{
|
||||
$fullBlock = $this->getFullBlock($b->x, $b->y, $b->z);
|
||||
$pk->blockRuntimeId = BlockFactory::toStaticRuntimeId($fullBlock >> 4, $fullBlock & 0xf);
|
||||
}
|
||||
|
||||
$packets[] = $pk;
|
||||
|
||||
$tile = $this->getTileAt($b->x, $b->y, $b->z);
|
||||
if($tile instanceof Spawnable){
|
||||
$packets[] = $tile->createSpawnPacket();
|
||||
}
|
||||
}
|
||||
|
||||
$this->server->broadcastPackets($target, $packets);
|
||||
|
Reference in New Issue
Block a user