diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2026-01-13 10:51:45 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-13 10:51:45 -0600 |
| commit | b21ac946cafaacc9ee2478ea48ed9e72554f79ed (patch) | |
| tree | 4d05744b9801e94f5da6563d8fabddfb20d1c7b7 /azalea-protocol/src/packets/game/s_set_structure_block.rs | |
| parent | d5fa5e32b37754b3b5c136e58821e48cd3b7c2ff (diff) | |
| download | azalea-drasl-b21ac946cafaacc9ee2478ea48ed9e72554f79ed.tar.xz | |
Merge AzaleaRead and AzaleaWrite (#305)
Diffstat (limited to 'azalea-protocol/src/packets/game/s_set_structure_block.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/s_set_structure_block.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/azalea-protocol/src/packets/game/s_set_structure_block.rs b/azalea-protocol/src/packets/game/s_set_structure_block.rs index c4387b0f..d16e520c 100644 --- a/azalea-protocol/src/packets/game/s_set_structure_block.rs +++ b/azalea-protocol/src/packets/game/s_set_structure_block.rs @@ -1,6 +1,6 @@ use std::io::{self, Cursor, Write}; -use azalea_buf::{AzBuf, AzaleaRead, AzaleaWrite}; +use azalea_buf::AzBuf; use azalea_core::{bitset::FixedBitSet, position::BlockPos}; use azalea_protocol_macros::ServerboundGamePacket; @@ -70,7 +70,7 @@ pub struct Flags { pub show_bounding_box: bool, } -impl AzaleaRead for Flags { +impl AzBuf for Flags { fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError> { let set = FixedBitSet::<3>::azalea_read(buf)?; Ok(Self { @@ -79,9 +79,6 @@ impl AzaleaRead for Flags { show_bounding_box: set.index(2), }) } -} - -impl AzaleaWrite for Flags { fn azalea_write(&self, buf: &mut impl Write) -> io::Result<()> { let mut set = FixedBitSet::<3>::new(); if self.ignore_entities { |
