diff options
Diffstat (limited to 'azalea-protocol/src/packets')
| -rwxr-xr-x | azalea-protocol/src/packets/game/clientbound_login_packet.rs | 4 | ||||
| -rwxr-xr-x | azalea-protocol/src/packets/game/clientbound_respawn_packet.rs | 2 | ||||
| -rwxr-xr-x | azalea-protocol/src/packets/mod.rs | 2 |
3 files changed, 7 insertions, 1 deletions
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<GlobalPos>, + #[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<String, Nbt>, } /// 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<GlobalPos>, + #[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 { |
