diff options
| author | mat <git@matdoes.dev> | 2025-06-03 22:01:50 +0330 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-03 22:01:50 +0330 |
| commit | f311ac27d47c43eb4c33d760f3e1d1f2b8008a4f (patch) | |
| tree | 0528f06cda48a5e3062d9348604ff2c01ed30cfa /azalea-client/src/plugins/packet/game/mod.rs | |
| parent | 415c0d873e7e793bbc8304247b828355d3ea8118 (diff) | |
| download | azalea-drasl-f311ac27d47c43eb4c33d760f3e1d1f2b8008a4f.tar.xz | |
send ServerboundPlayerLoaded on join and respawn
Diffstat (limited to 'azalea-client/src/plugins/packet/game/mod.rs')
| -rw-r--r-- | azalea-client/src/plugins/packet/game/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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::<Dead>(); + commands + .entity(self.player) + .remove::<(Dead, HasClientLoaded)>(); }, ) } |
