Make ChunkData use Vector2 instead of ChunkCoordinates

This commit is contained in:
lukas0008 committed 2024-08-30 17:40:55 +02:00
1 parent 5f05a1886b
commit 8bb00e26be
9 files changed
+127 -30

No files matched your search

+1 -2
View File
@@ -370,8 +370,7 @@ impl Server {
Err(_) => continue,
};
#[cfg(debug_assertions)]
if chunk_data.position == (pumpkin_world::coordinates::ChunkCoordinates { x: 0, z: 0 })
{
if chunk_data.position == (0, 0).into() {
use pumpkin_protocol::bytebuf::ByteBuffer;
let mut test = ByteBuffer::empty();
CChunkData(&chunk_data).write(&mut test);