From 3ad88347edf20582a9a36fd1d976d87036a7f3ef Mon Sep 17 00:00:00 2001 From: DaniD3v Date: Wed, 28 Aug 2024 11:49:36 +0200 Subject: [PATCH] Fixed bug where whole chunk can break in one mined block --- pumpkin-protocol/src/client/play/c_chunk_data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pumpkin-protocol/src/client/play/c_chunk_data.rs b/pumpkin-protocol/src/client/play/c_chunk_data.rs index 0c640c85c..2fbbb571c 100644 --- a/pumpkin-protocol/src/client/play/c_chunk_data.rs +++ b/pumpkin-protocol/src/client/play/c_chunk_data.rs @@ -23,7 +23,7 @@ impl<'a> ClientPacket for CChunkData<'a> { let mut data_buf = ByteBuffer::empty(); self.0.blocks.iter_subchunks().for_each(|chunk| { - let block_count = chunk.iter().dedup().filter(|block| !block.is_air()).count() as i16; + let block_count = chunk.iter().filter(|block| !block.is_air()).count() as i16; // Block count data_buf.put_i16(block_count); //// Block states