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/examples/testbot/commands | |
| parent | 2a6ac0764fe9975f9b16d495ce773e4ae1f097e0 (diff) | |
| download | azalea-drasl-9b0bd29db4faa9d94df0cec472346b814e7efcb9.tar.xz | |
take BlockPos instead of &BlockPos in all function arguments
Diffstat (limited to 'azalea/examples/testbot/commands')
| -rw-r--r-- | azalea/examples/testbot/commands/debug.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea/examples/testbot/commands/debug.rs b/azalea/examples/testbot/commands/debug.rs index b97ad71d..ea5dbe6f 100644 --- a/azalea/examples/testbot/commands/debug.rs +++ b/azalea/examples/testbot/commands/debug.rs @@ -110,7 +110,7 @@ pub fn register(commands: &mut CommandDispatcher<Mutex<CommandSource>>) { }; let block_pos = hit_result.block_pos; - let block = source.bot.world().read().get_block_state(&block_pos); + let block = source.bot.world().read().get_block_state(block_pos); source.reply(&format!("I'm looking at {block:?} at {block_pos:?}")); @@ -125,7 +125,7 @@ pub fn register(commands: &mut CommandDispatcher<Mutex<CommandSource>>) { let z = get_integer(ctx, "z").unwrap(); println!("getblock xyz {x} {y} {z}"); let block_pos = BlockPos::new(x, y, z); - let block = source.bot.world().read().get_block_state(&block_pos); + let block = source.bot.world().read().get_block_state(block_pos); source.reply(&format!("Block at {block_pos} is {block:?}")); 1 })), @@ -138,7 +138,7 @@ pub fn register(commands: &mut CommandDispatcher<Mutex<CommandSource>>) { let z = get_integer(ctx, "z").unwrap(); println!("getfluid xyz {x} {y} {z}"); let block_pos = BlockPos::new(x, y, z); - let block = source.bot.world().read().get_fluid_state(&block_pos); + let block = source.bot.world().read().get_fluid_state(block_pos); source.reply(&format!("Fluid at {block_pos} is {block:?}")); 1 })), |
