mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
feat(client-chunk): add greedy meshing, receive_chunk, and biome field
This commit is contained in:
@@ -437,6 +437,7 @@ void ServerWorld::handle_chunk_req(const std::string& uuid, ChunkPos pos) {
|
||||
return;
|
||||
}
|
||||
rsq.set_chunk_seed(it->second.seed());
|
||||
rsq.set_biome_type(std::to_underlying(it->second.biome()));
|
||||
auto* blocks = rsq.mutable_chunk_blocks();
|
||||
auto& chunk_blocks = it->second.get_chunk_blocks();
|
||||
blocks->Assign(chunk_blocks.begin(), chunk_blocks.end());
|
||||
|
||||
Reference in New Issue
Block a user