Add BlockFace

This commit is contained in:
Snowiiii committed 2024-08-17 11:14:38 +02:00
1 parent 91533c30df
commit 40fe40355f
8 files changed
+25 -7

No files matched your search

+2 -2
View File
@@ -339,7 +339,7 @@ impl Server {
// TODO: do this in a world
async fn spawn_test_chunk(client: &mut Client, distance: u32) {
let inst = std::time::Instant::now();
let (sender, mut chunk_receiver) = mpsc::channel(1024);
let (sender, mut chunk_receiver) = mpsc::channel(distance as usize);
tokio::spawn(async move {
let level = Dimension::OverWorld.into_level(
// TODO: load form config
@@ -375,7 +375,7 @@ impl Server {
}
client.send_packet(&CChunkData(&chunk_data));
}
let t = std::time::Instant::now().duration_since(inst);
let t = inst.elapsed();
dbg!("DONE", t);
}