Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas0008 committed Aug 22, 2024
1 parent 10ed8c0 commit e1a1a22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pumpkin/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use mio::{event::Event, Poll, Token};
use num_traits::ToPrimitive;
use pumpkin_entity::{entity_type::EntityType, EntityId};
use pumpkin_protocol::{
bytebuf::ByteBuffer,
client::{
config::CPluginMessage,
play::{
Expand Down Expand Up @@ -364,14 +363,15 @@ impl Server {
chunk_z: 0.into(),
});

while let Some((chunk_pos, chunk_data)) = chunk_receiver.recv().await {
while let Some((_chunk_pos, chunk_data)) = chunk_receiver.recv().await {
// dbg!(chunk_pos);
let chunk_data = match chunk_data {
Ok(d) => d,
Err(_) => continue,
};
#[cfg(debug_assertions)]
if chunk_pos == (0, 0) {
if _chunk_pos == (0, 0) {
use pumpkin_protocol::bytebuf::ByteBuffer;
let mut test = ByteBuffer::empty();
CChunkData(&chunk_data).write(&mut test);
let len = test.buf().len();
Expand Down

0 comments on commit e1a1a22

Please sign in to comment.