From f311ac27d47c43eb4c33d760f3e1d1f2b8008a4f Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 3 Jun 2025 22:01:50 +0330 Subject: send ServerboundPlayerLoaded on join and respawn --- azalea-client/src/plugins/packet/game/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'azalea-client/src/plugins/packet/game/mod.rs') diff --git a/azalea-client/src/plugins/packet/game/mod.rs b/azalea-client/src/plugins/packet/game/mod.rs index 63c1bafa..670058c3 100644 --- a/azalea-client/src/plugins/packet/game/mod.rs +++ b/azalea-client/src/plugins/packet/game/mod.rs @@ -29,6 +29,7 @@ use crate::{ inventory::{ ClientSideCloseContainerEvent, Inventory, MenuOpenedEvent, SetContainerContentEvent, }, + loading::HasClientLoaded, local_player::{Hunger, InstanceHolder, LocalGameMode, PlayerAbilities, TabList}, movement::{KnockbackEvent, KnockbackType}, packet::as_system, @@ -1490,8 +1491,9 @@ impl GamePacketHandler<'_> { entity_bundle, )); - // Remove the Dead marker component from the player. - commands.entity(self.player).remove::(); + commands + .entity(self.player) + .remove::<(Dead, HasClientLoaded)>(); }, ) } -- cgit v1.2.3