diff options
| author | mat <git@matdoes.dev> | 2025-06-11 16:55:33 +1100 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-11 16:55:33 +1100 |
| commit | 9b0bd29db4faa9d94df0cec472346b814e7efcb9 (patch) | |
| tree | 4f681b5143eb5ebe69a0b5b53125ea7509f8026a /azalea-client/src/plugins/packet | |
| parent | 2a6ac0764fe9975f9b16d495ce773e4ae1f097e0 (diff) | |
| download | azalea-drasl-9b0bd29db4faa9d94df0cec472346b814e7efcb9.tar.xz | |
take BlockPos instead of &BlockPos in all function arguments
Diffstat (limited to 'azalea-client/src/plugins/packet')
| -rw-r--r-- | azalea-client/src/plugins/packet/game/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/plugins/packet/game/mod.rs b/azalea-client/src/plugins/packet/game/mod.rs index 1307473d..a49a0209 100644 --- a/azalea-client/src/plugins/packet/game/mod.rs +++ b/azalea-client/src/plugins/packet/game/mod.rs @@ -1066,7 +1066,7 @@ impl GamePacketHandler<'_> { let world = local_player.instance.write(); - world.chunks.set_block_state(&p.pos, p.block_state); + world.chunks.set_block_state(p.pos, p.block_state); }); } @@ -1083,7 +1083,7 @@ impl GamePacketHandler<'_> { for state in &p.states { world .chunks - .set_block_state(&(p.section_pos + state.pos), state.state); + .set_block_state(p.section_pos + state.pos, state.state); } }); } |
