aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2023-05-11 17:11:15 +0000
committermat <github@matdoes.dev>2023-05-11 17:11:34 +0000
commitc04620ec3892e47f463d4af969757c000235eff6 (patch)
treedd8969838b3cbac94e13fb58b761396242b19c2e /azalea-protocol
parentc7a923ccc8ae825deca62ac2cc8c80c01484d5b6 (diff)
downloadazalea-drasl-c04620ec3892e47f463d4af969757c000235eff6.tar.xz
1.20-pre1
Diffstat (limited to 'azalea-protocol')
-rwxr-xr-xazalea-protocol/src/packets/game/clientbound_login_packet.rs4
-rwxr-xr-xazalea-protocol/src/packets/game/clientbound_respawn_packet.rs2
-rwxr-xr-xazalea-protocol/src/packets/mod.rs2
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 {