diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2022-09-02 12:11:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-02 12:11:14 -0500 |
| commit | cfb190d00c70f1b09789e23f89a3c67840e0fd87 (patch) | |
| tree | 9bdc021943753d60bf437526c4c294275eae13ac /azalea-protocol/src/packets/game/clientbound_player_position_packet.rs | |
| parent | 32458d743f757da3193717fe5554f490703640c0 (diff) | |
| download | azalea-drasl-cfb190d00c70f1b09789e23f89a3c67840e0fd87.tar.xz | |
get rid of Readable & Writable (#21)
Diffstat (limited to 'azalea-protocol/src/packets/game/clientbound_player_position_packet.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_player_position_packet.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_player_position_packet.rs b/azalea-protocol/src/packets/game/clientbound_player_position_packet.rs index d4c9dcb5..8396b0ef 100644 --- a/azalea-protocol/src/packets/game/clientbound_player_position_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_player_position_packet.rs @@ -1,5 +1,5 @@ use azalea_buf::{BufReadError, McBuf}; -use azalea_buf::{McBufReadable, McBufWritable, Readable}; +use azalea_buf::{McBufReadable, McBufWritable}; use packet_macros::ClientboundGamePacket; use std::io::{Read, Write}; @@ -29,7 +29,7 @@ pub struct RelativeArguments { impl McBufReadable for RelativeArguments { fn read_from(buf: &mut impl Read) -> Result<Self, BufReadError> { - let byte = buf.read_byte()?; + let byte = u8::read_from(buf)?; Ok(RelativeArguments { x: byte & 0b1 != 0, y: byte & 0b10 != 0, |
