aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/local_player.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-11-18 00:49:44 -0600
committermat <git@matdoes.dev>2023-11-18 00:49:44 -0600
commit71cd3f021e5aeec81d9b473860702da15668b7c9 (patch)
treec4015e92cdea8796cd0a783d0536359abfc62631 /azalea-client/src/local_player.rs
parente39de79a6b5913cab2ee59cff492317a24726ba4 (diff)
downloadazalea-drasl-71cd3f021e5aeec81d9b473860702da15668b7c9.tar.xz
make packet an Arc in PacketEvent
Diffstat (limited to 'azalea-client/src/local_player.rs')
-rw-r--r--azalea-client/src/local_player.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs
index e49a81fe..ac0e4ea1 100644
--- a/azalea-client/src/local_player.rs
+++ b/azalea-client/src/local_player.rs
@@ -68,8 +68,8 @@ pub struct PlayerAbilities {
/// Used for the fov
pub walking_speed: f32,
}
-impl From<ClientboundPlayerAbilitiesPacket> for PlayerAbilities {
- fn from(packet: ClientboundPlayerAbilitiesPacket) -> Self {
+impl From<&ClientboundPlayerAbilitiesPacket> for PlayerAbilities {
+ fn from(packet: &ClientboundPlayerAbilitiesPacket) -> Self {
Self {
invulnerable: packet.flags.invulnerable,
flying: packet.flags.flying,