mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
Merge branch 'main' into options
This commit is contained in:
commit
20b597147b
2 changed files with 2 additions and 2 deletions
|
@ -655,7 +655,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) => {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue