aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--azalea-client/src/client.rs2
-rw-r--r--azalea-core/src/position.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 25c68c5d..c70d0e90 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -645,7 +645,7 @@ impl Client {
debug!("Got section blocks update packet {:?}", p);
let mut dimension = client.dimension.lock();
for state in &p.states {
- dimension.set_block_state(&(p.section_pos + state.pos), state.state);
+ dimension.set_block_state(&(p.section_pos + state.pos.clone()), state.state);
}
}
ClientboundGamePacket::GameEvent(p) => {
diff --git a/azalea-core/src/position.rs b/azalea-core/src/position.rs
index 83472b61..85ffc774 100644
--- a/azalea-core/src/position.rs
+++ b/azalea-core/src/position.rs
@@ -156,7 +156,7 @@ impl ChunkBlockPos {
}
}
/// The coordinates of a block inside a chunk section.
-#[derive(Clone, Copy, Debug, Default)]
+#[derive(Clone, Debug, Default)]
pub struct ChunkSectionBlockPos {
/// A number between 0 and 16.
pub x: u8,