diff options
| author | Sculas <contact@sculas.xyz> | 2022-10-17 20:18:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-17 13:18:25 -0500 |
| commit | d4d4ba054f4da0dcf550524523792ee79268d40d (patch) | |
| tree | 7fcf3e70653caa2a88a99b57691ab5725c27f454 /azalea-client/src | |
| parent | 96e94aa424bf4468bcd6106ed43dc7990bead2d5 (diff) | |
| download | azalea-drasl-d4d4ba054f4da0dcf550524523792ee79268d40d.tar.xz | |
refactor: remove println statements (#31)
This PR removes all println statements and logs them on trace level instead. Normally, libraries shouldn't print to stdout using println, since there's no control over them.
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/movement.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea-client/src/movement.rs b/azalea-client/src/movement.rs index fb4a5968..85cf6bdd 100644 --- a/azalea-client/src/movement.rs +++ b/azalea-client/src/movement.rs @@ -144,9 +144,10 @@ impl Client { let mut entity = player .entity_mut(&mut dimension_lock) .ok_or(MovePlayerError::PlayerNotInWorld)?; - println!( + log::trace!( "move entity bounding box: {} {:?}", - entity.id, entity.bounding_box + entity.id, + entity.bounding_box ); entity.move_colliding(&MoverType::Own, movement)?; |
