aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/packet/game/mod.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-02-24 04:24:52 +0000
committermat <git@matdoes.dev>2025-02-24 04:24:52 +0000
commit7d6cacc79baadc53c7ac9eee735af311423634ad (patch)
tree973830546f327cc3fdbdfefcb474daa38c9f8d59 /azalea-client/src/plugins/packet/game/mod.rs
parentcfe6bea25a619846bbd5e23022ae572ea487563d (diff)
downloadazalea-drasl-7d6cacc79baadc53c7ac9eee735af311423634ad.tar.xz
fix send_receivepacketevent running outside of game state
Diffstat (limited to 'azalea-client/src/plugins/packet/game/mod.rs')
-rw-r--r--azalea-client/src/plugins/packet/game/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/plugins/packet/game/mod.rs b/azalea-client/src/plugins/packet/game/mod.rs
index 2826295d..c3381e59 100644
--- a/azalea-client/src/plugins/packet/game/mod.rs
+++ b/azalea-client/src/plugins/packet/game/mod.rs
@@ -749,7 +749,7 @@ impl GamePacketHandler<'_> {
);
return;
};
- let entity_kind = *entity_kind;
+ let entity_kind = **entity_kind;
debug!("Got set entity data packet {p:?} for entity of kind {entity_kind:?}");
@@ -766,7 +766,7 @@ impl GamePacketHandler<'_> {
let mut commands = commands_system_state.get_mut(world);
let mut entity_commands = commands.entity(entity_id);
if let Err(e) =
- apply_metadata(&mut entity_commands, *entity_kind, packed_items)
+ apply_metadata(&mut entity_commands, entity_kind, packed_items)
{
warn!("{e}");
}