aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/clientbound_block_update_packet.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-09-05 11:44:48 -0500
committermat <github@matdoes.dev>2022-09-05 11:44:48 -0500
commitfcb5bdf04241082d08b1ecc083745d6d97af61a9 (patch)
treeb41a76923e299dc60802d676a319c85f9c76858c /azalea-protocol/src/packets/game/clientbound_block_update_packet.rs
parent4301a2f2d4c711fd50a54cf065079c42b89a72f2 (diff)
downloadazalea-drasl-fcb5bdf04241082d08b1ecc083745d6d97af61a9.tar.xz
use az-registry in az-protocol
Diffstat (limited to 'azalea-protocol/src/packets/game/clientbound_block_update_packet.rs')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_block_update_packet.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_block_update_packet.rs b/azalea-protocol/src/packets/game/clientbound_block_update_packet.rs
index 44629c82..3034accc 100644
--- a/azalea-protocol/src/packets/game/clientbound_block_update_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_block_update_packet.rs
@@ -1,3 +1,4 @@
+use azalea_block::BlockState;
use azalea_buf::McBuf;
use azalea_core::BlockPos;
use azalea_protocol_macros::ClientboundGamePacket;
@@ -5,8 +6,5 @@ use azalea_protocol_macros::ClientboundGamePacket;
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
pub struct ClientboundBlockUpdatePacket {
pub pos: BlockPos,
- // TODO: in vanilla this is a BlockState, but here we just have it as a number.
- // perhaps we could make a crate that only handles block states? right now blockstates are handled in azalea-block
- #[var]
- pub block_state: u32,
+ pub block_state: BlockState,
}