aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/packet/game/mod.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-03 22:01:50 +0330
committermat <git@matdoes.dev>2025-06-03 22:01:50 +0330
commitf311ac27d47c43eb4c33d760f3e1d1f2b8008a4f (patch)
tree0528f06cda48a5e3062d9348604ff2c01ed30cfa /azalea-client/src/plugins/packet/game/mod.rs
parent415c0d873e7e793bbc8304247b828355d3ea8118 (diff)
downloadazalea-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.rs6
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)>();
},
)
}