Add TeleportPlayer_WithDismount packet variant

This commit is contained in:
ice_iix 2021-08-29 16:25:19 -07:00
parent 4e5cb66046
commit ca139d53fd
2 changed files with 11 additions and 1 deletions

View File

@ -1589,6 +1589,16 @@ state_packets!(
/// TeleportPlayer is sent to change the player's position. The client is expected
/// to reply to the server with the same positions as contained in this packet
/// otherwise will reject future packets.
packet TeleportPlayer_WithDismount {
field x: f64 =,
field y: f64 =,
field z: f64 =,
field yaw: f32 =,
field pitch: f32 =,
field flags: u8 =,
field teleport_id: VarInt =,
field dismount: bool =,
}
packet TeleportPlayer_WithConfirm {
field x: f64 =,
field y: f64 =,

View File

@ -113,7 +113,7 @@ protocol_packet_ids!(
0x35 => CombatEventDeath
0x36 => PlayerInfo
0x37 => FacePlayer
0x38 => TeleportPlayer_WithConfirm
0x38 => TeleportPlayer_WithDismount
0x39 => UnlockRecipes_WithBlastSmoker
0x3a => EntityDestroy
0x3b => EntityRemoveEffect