diff options
| author | mat <github@matdoes.dev> | 2022-10-21 20:26:49 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-10-21 20:26:49 -0500 |
| commit | aa1f2a55e047f528dcb78509b025548696e42543 (patch) | |
| tree | 789973b2f2cdd59401d62c73a1ab804897381c6f | |
| parent | 8d0cad77846f61d3ab0bce55394ff127ede0b898 (diff) | |
| download | azalea-drasl-aa1f2a55e047f528dcb78509b025548696e42543.tar.xz | |
work around rustc compilation error
| -rw-r--r-- | azalea-client/src/client.rs | 2 | ||||
| -rw-r--r-- | 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, |
