aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/clientbound_respawn_packet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game/clientbound_respawn_packet.rs')
-rwxr-xr-xazalea-protocol/src/packets/game/clientbound_respawn_packet.rs14
1 files changed, 3 insertions, 11 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_respawn_packet.rs b/azalea-protocol/src/packets/game/clientbound_respawn_packet.rs
index 71ccfd18..7e20a843 100755
--- a/azalea-protocol/src/packets/game/clientbound_respawn_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_respawn_packet.rs
@@ -1,18 +1,10 @@
use azalea_buf::McBuf;
-use azalea_core::{GameMode, GlobalPos, OptionalGameType, ResourceLocation};
use azalea_protocol_macros::ClientboundGamePacket;
+use crate::packets::common::CommonPlayerSpawnInfo;
+
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
pub struct ClientboundRespawnPacket {
- pub dimension_type: ResourceLocation,
- pub dimension: ResourceLocation,
- pub seed: u64,
- pub game_type: GameMode,
- pub previous_game_type: OptionalGameType,
- pub is_debug: bool,
- pub is_flat: bool,
+ pub common: CommonPlayerSpawnInfo,
pub data_to_keep: u8,
- pub last_death_location: Option<GlobalPos>,
- #[var]
- pub portal_cooldown: u32,
}