From aa1f2a55e047f528dcb78509b025548696e42543 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 21 Oct 2022 20:26:49 -0500 Subject: [PATCH] work around rustc compilation error --- azalea-client/src/client.rs | 2 +- azalea-core/src/position.rs | 2 +- 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,