From dbe3964e4150cecc3a9431a231fd9b374f62658b Mon Sep 17 00:00:00 2001 From: StripedMonkey Date: Tue, 20 Aug 2024 20:04:33 -0400 Subject: [PATCH] postion -> position --- pumpkin-protocol/src/client/play/c_sync_player_position.rs | 4 ++-- pumpkin/src/client/mod.rs | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pumpkin-protocol/src/client/play/c_sync_player_position.rs b/pumpkin-protocol/src/client/play/c_sync_player_position.rs index 056214281..422160ad2 100644 --- a/pumpkin-protocol/src/client/play/c_sync_player_position.rs +++ b/pumpkin-protocol/src/client/play/c_sync_player_position.rs @@ -5,7 +5,7 @@ use crate::VarInt; #[derive(Serialize)] #[packet(0x40)] -pub struct CSyncPlayerPostion { +pub struct CSyncPlayerPosition { x: f64, y: f64, z: f64, @@ -15,7 +15,7 @@ pub struct CSyncPlayerPostion { teleport_id: VarInt, } -impl CSyncPlayerPostion { +impl CSyncPlayerPosition { pub fn new( x: f64, y: f64, diff --git a/pumpkin/src/client/mod.rs b/pumpkin/src/client/mod.rs index cd8d39177..9cdccef3d 100644 --- a/pumpkin/src/client/mod.rs +++ b/pumpkin/src/client/mod.rs @@ -19,7 +19,10 @@ use pumpkin_protocol::{ client::{ config::CConfigDisconnect, login::CLoginDisconnect, - play::{CGameEvent, CPlayDisconnect, CSetContainerContent, CSyncPlayerPosition, CSystemChatMessage}, + play::{ + CGameEvent, CPlayDisconnect, CSetContainerContent, CSyncPlayerPosition, + CSystemChatMessage, + }, }, packet_decoder::PacketDecoder, packet_encoder::PacketEncoder,