diff options
| author | mat <github@matdoes.dev> | 2022-04-30 22:18:33 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-30 22:18:33 -0500 |
| commit | 3c3deb625db1b466b9cb3b123af73333b27b14cc (patch) | |
| tree | b33e43d28f0774b633a8a6bba936c54fe96c90f3 /azalea-protocol/src | |
| parent | 51201ffe657a3d20843c13be57ced740270cd384 (diff) | |
| download | azalea-drasl-3c3deb625db1b466b9cb3b123af73333b27b14cc.tar.xz | |
add entity -> add mob
Diffstat (limited to 'azalea-protocol/src')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_add_mob_packet.rs (renamed from azalea-protocol/src/packets/game/clientbound_add_entity_packet.rs) | 4 | ||||
| -rwxr-xr-x | azalea-protocol/src/packets/game/mod.rs | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_add_entity_packet.rs b/azalea-protocol/src/packets/game/clientbound_add_mob_packet.rs index c5a5597f..144e74c8 100644 --- a/azalea-protocol/src/packets/game/clientbound_add_entity_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_add_mob_packet.rs @@ -1,10 +1,8 @@ -use crate::mc_buf::UnsizedByteArray; -use azalea_core::resource_location::ResourceLocation; use packet_macros::GamePacket; use uuid::Uuid; #[derive(Clone, Debug, GamePacket)] -pub struct ClientboundAddEntityPacket { +pub struct ClientboundAddMobPacket { #[varint] pub id: i32, pub uuid: Uuid, diff --git a/azalea-protocol/src/packets/game/mod.rs b/azalea-protocol/src/packets/game/mod.rs index 9cde366c..4b8132f1 100755 --- a/azalea-protocol/src/packets/game/mod.rs +++ b/azalea-protocol/src/packets/game/mod.rs @@ -1,4 +1,4 @@ -pub mod clientbound_add_entity_packet; +pub mod clientbound_add_mob_packet; pub mod clientbound_change_difficulty_packet; pub mod clientbound_custom_payload_packet; pub mod clientbound_declare_commands_packet; @@ -23,7 +23,7 @@ declare_state_packets!( GamePacket, Serverbound => {}, Clientbound => { - 0x02: clientbound_add_entity_packet::ClientboundAddEntityPacket, + 0x02: clientbound_add_mob_packet::ClientboundAddMobPacket, 0x0e: clientbound_change_difficulty_packet::ClientboundChangeDifficultyPacket, 0x12: clientbound_declare_commands_packet::ClientboundDeclareCommandsPacket, 0x1a: clientbound_disconnect_packet::ClientboundDisconnectPacket, |
