Skip to content

Commit

Permalink
Fixed bug where whole chunk can break in one mined block
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniD3v committed Aug 28, 2024
1 parent 2176120 commit 3ad8834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pumpkin-protocol/src/client/play/c_chunk_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ad8834

Please sign in to comment.