aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_block_destruction.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-02-16 17:10:04 +0000
committermat <git@matdoes.dev>2025-02-16 17:10:04 +0000
commit228489dded720cea566dd0a4638b39cba2aff5ec (patch)
treeae4631e3ed42cd13b02bdcd32e81761ca79f4d0c /azalea-protocol/src/packets/game/c_block_destruction.rs
parent4fb6b077464e14f816e4c4fe54ff648e8c3d0ede (diff)
downloadazalea-drasl-228489dded720cea566dd0a4638b39cba2aff5ec.tar.xz
use MinecraftEntityId type instead of u32 in az-protocol
Diffstat (limited to 'azalea-protocol/src/packets/game/c_block_destruction.rs')
-rwxr-xr-xazalea-protocol/src/packets/game/c_block_destruction.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-protocol/src/packets/game/c_block_destruction.rs b/azalea-protocol/src/packets/game/c_block_destruction.rs
index 50d8085b..4a6e5f69 100755
--- a/azalea-protocol/src/packets/game/c_block_destruction.rs
+++ b/azalea-protocol/src/packets/game/c_block_destruction.rs
@@ -1,12 +1,13 @@
use azalea_buf::AzBuf;
use azalea_core::position::BlockPos;
use azalea_protocol_macros::ClientboundGamePacket;
+use azalea_world::MinecraftEntityId;
#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
pub struct ClientboundBlockDestruction {
/// The ID of the entity breaking the block.
#[var]
- pub id: u32,
+ pub id: MinecraftEntityId,
pub pos: BlockPos,
/// 0–9 to set it, any other value to remove it.
pub progress: u8,