aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_damage_event.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_damage_event.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_damage_event.rs')
-rw-r--r--azalea-protocol/src/packets/game/c_damage_event.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/c_damage_event.rs b/azalea-protocol/src/packets/game/c_damage_event.rs
index a736f39a..d4393685 100644
--- a/azalea-protocol/src/packets/game/c_damage_event.rs
+++ b/azalea-protocol/src/packets/game/c_damage_event.rs
@@ -1,13 +1,14 @@
use std::io::{Cursor, Write};
-use azalea_buf::{AzBuf, AzaleaRead, AzaleaReadVar, AzaleaWriteVar, AzaleaWrite};
+use azalea_buf::{AzBuf, AzaleaRead, AzaleaReadVar, AzaleaWrite, AzaleaWriteVar};
use azalea_core::position::Vec3;
use azalea_protocol_macros::ClientboundGamePacket;
+use azalea_world::MinecraftEntityId;
#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
pub struct ClientboundDamageEvent {
#[var]
- pub entity_id: u32,
+ pub entity_id: MinecraftEntityId,
#[var]
pub source_type_id: u32,
pub source_cause_id: OptionalEntityId,