aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/chunks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/plugins/chunks.rs')
-rw-r--r--azalea-client/src/plugins/chunks.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/azalea-client/src/plugins/chunks.rs b/azalea-client/src/plugins/chunks.rs
index 089cc5d4..060b94e2 100644
--- a/azalea-client/src/plugins/chunks.rs
+++ b/azalea-client/src/plugins/chunks.rs
@@ -4,7 +4,6 @@
use std::{
io::Cursor,
- ops::Deref,
time::{Duration, Instant},
};
@@ -15,7 +14,6 @@ use azalea_protocol::packets::game::{
};
use bevy_app::{App, Plugin, Update};
use bevy_ecs::prelude::*;
-use simdnbt::owned::BaseNbt;
use tracing::{error, trace};
use super::packet::game::handle_outgoing_packets;
@@ -98,10 +96,7 @@ pub fn handle_receive_chunk_events(
}
}
- let heightmaps_nbt = &event.packet.chunk_data.heightmaps;
- // necessary to make the unwrap_or work
- let empty_nbt = BaseNbt::default();
- let heightmaps = heightmaps_nbt.unwrap_or(&empty_nbt).deref();
+ let heightmaps = &event.packet.chunk_data.heightmaps;
if let Err(e) = partial_instance.chunks.replace_with_packet_data(
&pos,