From 2aa046c4b50a0de850eb567cd8bced03e8f99bd6 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 17 Apr 2025 22:17:18 +0200 Subject: make BlockState::id private --- azalea-protocol/src/packets/game/c_section_blocks_update.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-protocol/src/packets') diff --git a/azalea-protocol/src/packets/game/c_section_blocks_update.rs b/azalea-protocol/src/packets/game/c_section_blocks_update.rs index 05ceb30c..2a7a867e 100644 --- a/azalea-protocol/src/packets/game/c_section_blocks_update.rs +++ b/azalea-protocol/src/packets/game/c_section_blocks_update.rs @@ -35,7 +35,7 @@ impl AzaleaRead for BlockStateWithPosition { impl AzaleaWrite for BlockStateWithPosition { fn azalea_write(&self, buf: &mut impl Write) -> Result<(), std::io::Error> { - let data = ((self.state.id as u64) << 12) + let data = ((self.state.id() as u64) << 12) | ((u64::from(self.pos.x) << 8) | (u64::from(self.pos.z) << 4) | u64::from(self.pos.y)); u64::azalea_write_var(&data, buf)?; Ok(()) -- cgit v1.2.3