Level->sendBlocks() now syncs tiles

This commit is contained in:
Dylan K. Taylor
2019-02-23 16:52:30 +00:00
parent e1ef52c7c3
commit eadb1d310e
3 changed files with 7 additions and 20 deletions

View File

@ -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);