From c04620ec3892e47f463d4af969757c000235eff6 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 11 May 2023 17:11:15 +0000 Subject: 1.20-pre1 --- azalea-protocol/src/packets/game/clientbound_login_packet.rs | 4 ++++ azalea-protocol/src/packets/game/clientbound_respawn_packet.rs | 2 ++ azalea-protocol/src/packets/mod.rs | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'azalea-protocol/src') diff --git a/azalea-protocol/src/packets/game/clientbound_login_packet.rs b/azalea-protocol/src/packets/game/clientbound_login_packet.rs index bafead86..b57fe66f 100755 --- a/azalea-protocol/src/packets/game/clientbound_login_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_login_packet.rs @@ -29,6 +29,8 @@ pub struct ClientboundLoginPacket { pub is_debug: bool, pub is_flat: bool, pub last_death_location: Option, + #[var] + pub portal_cooldown: u32, } pub mod registry { @@ -253,6 +255,8 @@ pub mod registry { pub struct DimensionTypeElement { pub height: u32, pub min_y: i32, + #[serde(flatten)] + pub _extra: HashMap, } /// The light level at which monsters can spawn. diff --git a/azalea-protocol/src/packets/game/clientbound_respawn_packet.rs b/azalea-protocol/src/packets/game/clientbound_respawn_packet.rs index 03cc2917..3518aa08 100755 --- a/azalea-protocol/src/packets/game/clientbound_respawn_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_respawn_packet.rs @@ -13,4 +13,6 @@ pub struct ClientboundRespawnPacket { pub is_flat: bool, pub data_to_keep: u8, pub last_death_location: Option, + #[var] + pub portal_cooldown: u32, } diff --git a/azalea-protocol/src/packets/mod.rs b/azalea-protocol/src/packets/mod.rs index b3b81131..58e53454 100755 --- a/azalea-protocol/src/packets/mod.rs +++ b/azalea-protocol/src/packets/mod.rs @@ -10,7 +10,7 @@ use std::io::{Cursor, Write}; // TODO: rename the packet files to just like clientbound_add_entity instead of // clientbound_add_entity_packet -pub const PROTOCOL_VERSION: u32 = 1073741957; +pub const PROTOCOL_VERSION: u32 = 1073741958; #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum ConnectionProtocol { -- cgit v1.2.3